From f253dce82c604ec5deec7fe2bde061ae4595f789 Mon Sep 17 00:00:00 2001 From: Margaret Epps Date: Fri, 29 Sep 2017 16:11:22 -0400 Subject: [PATCH] CRM-20304 Add no-open class so modal stays open but doesn't open on page --- js/crm.ajax.js | 2 +- templates/CRM/Custom/Page/Option.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/crm.ajax.js b/js/crm.ajax.js index 262227ea89..5f299a1c81 100644 --- a/js/crm.ajax.js +++ b/js/crm.ajax.js @@ -498,7 +498,7 @@ settings = $el.data('popup-settings') || {}, formData = false; settings.dialog = settings.dialog || {}; - if (e.isDefaultPrevented() || !CRM.config.ajaxPopupsEnabled || !url || $el.is(exclude)) { + if (e.isDefaultPrevented() || !CRM.config.ajaxPopupsEnabled || !url || $el.is(exclude + ', .no-open')) { return; } // Sized based on css class diff --git a/templates/CRM/Custom/Page/Option.tpl b/templates/CRM/Custom/Page/Option.tpl index 68463ef816..a1b0a7c49e 100644 --- a/templates/CRM/Custom/Page/Option.tpl +++ b/templates/CRM/Custom/Page/Option.tpl @@ -157,7 +157,7 @@ {/literal} -- 2.25.1