From: Coleman Watts Date: Fri, 26 Sep 2014 13:07:19 +0000 (-0400) Subject: Fix enableDisableApi to fire crmPopupFormSuccess event X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=369f685eec41b78757b560effb7c9786e8dd052e;p=civicrm-core.git Fix enableDisableApi to fire crmPopupFormSuccess event --- diff --git a/js/crm.livePage.js b/js/crm.livePage.js index 5133f5d371..35c8b39312 100644 --- a/js/crm.livePage.js +++ b/js/crm.livePage.js @@ -1,7 +1,7 @@ // 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() diff --git a/js/crm.searchForm.js b/js/crm.searchForm.js index 4b4ad2e7fe..dc3a9cb637 100644 --- a/js/crm.searchForm.js +++ b/js/crm.searchForm.js @@ -3,7 +3,7 @@ "use strict"; var selected = 0, form = 'form.crm-search-form', - active = 'a.button, a.action-item, a.crm-popup'; + active = 'a.button, a.action-item:not(.crm-enable-disable), a.crm-popup'; function clearTaskMenu() { $('select#task', form).val('').select2('val', '').prop('disabled', true).select2('disable'); diff --git a/templates/CRM/common/TabHeader.js b/templates/CRM/common/TabHeader.js index f6aa5f398a..f45929ff93 100644 --- a/templates/CRM/common/TabHeader.js +++ b/templates/CRM/common/TabHeader.js @@ -32,7 +32,7 @@ CRM.$(function($) { ui.panel .off('click.crmLivePage') .on('click.crmLivePage', 'a.button, a.action-item', CRM.popup) - .on('crmPopupFormSuccess.crmLivePage', 'a.button, a.action-item', CRM.refreshParent); + .on('crmPopupFormSuccess.crmLivePage', 'a.button, a.action-item:not(.crm-enable-disable)', CRM.refreshParent); } ui.panel .off('.tabInfo') diff --git a/templates/CRM/common/enableDisableApi.tpl b/templates/CRM/common/enableDisableApi.tpl index 2396685fee..5db3c74186 100644 --- a/templates/CRM/common/enableDisableApi.tpl +++ b/templates/CRM/common/enableDisableApi.tpl @@ -27,7 +27,7 @@ {literal}