X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=js%2Fcrm.livePage.js;h=35c8b39312dd7cc3a333c4d5dc255b364798e929;hb=c66054d28435f089215f8f6a1e581312fc31cbbe;hp=819b58f804b9e3329ca1adf57913d856ffeaf957;hpb=5e77254bbdf89164c001f7007c28807295dcd0b5;p=civicrm-core.git diff --git a/js/crm.livePage.js b/js/crm.livePage.js index 819b58f804..35c8b39312 100644 --- a/js/crm.livePage.js +++ b/js/crm.livePage.js @@ -1,15 +1,12 @@ // http://civicrm.org/licensing // Adds ajaxy behavior to a simple CiviCRM page CRM.$(function($) { - var active = 'a.button, a.action-item, a.crm-popup'; + var active = 'a.button, a.action-item:not(.crm-enable-disable), a.crm-popup'; $('#crm-main-content-wrapper') // Widgetize the content area .crmSnippet() // Open action links in a popup .off('.crmLivePage') .on('click.crmLivePage', active, CRM.popup) - .on('crmPopupFormSuccess.crmLivePage', active, function() { - // Refresh page when form completes - $('#crm-main-content-wrapper').crmSnippet('refresh'); - }); + .on('crmPopupFormSuccess.crmLivePage', active, CRM.refreshParent); });