From 71bdf27c5e8d90d8de6e0a6b234f9da0128599a2 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sun, 8 Oct 2017 23:42:15 -0400 Subject: [PATCH] CRM-20304 Tweak open-inline classes open-inline implies that it will not pop up, so this explicitly excludes them. This allows us to fix the problem where clicking the sort button would add to the history of the popup and take you "back" when clicking done instead of simply closing the dialog. --- 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 5f299a1c81..9cb5eb601e 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 + ', .no-open')) { + if (e.isDefaultPrevented() || !CRM.config.ajaxPopupsEnabled || !url || $el.is(exclude + ', .open-inline, .open-inline-noreturn')) { return; } // Sized based on css class diff --git a/templates/CRM/Custom/Page/Option.tpl b/templates/CRM/Custom/Page/Option.tpl index a1b0a7c49e..6ccc8a6206 100644 --- a/templates/CRM/Custom/Page/Option.tpl +++ b/templates/CRM/Custom/Page/Option.tpl @@ -157,7 +157,7 @@ {/literal} -- 2.25.1