From 660c46f3aa64623d997a1258d5c2267204c371c4 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 16 Dec 2013 19:49:39 -0800 Subject: [PATCH] CRM-13997 - upgrade jQuery UI - Fix data namespaces --- js/Common.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/Common.js b/js/Common.js index 93de8eebd8..6a4af6df4d 100644 --- a/js/Common.js +++ b/js/Common.js @@ -957,12 +957,12 @@ CRM.validate = CRM.validate || { widget.on('crmFormLoad', function(event, data) { var $el = $(this); - var settings = $el.data('crmSnippet').options.crmForm; + var settings = $el.crmSnippet('option', 'crmForm'); settings.cancelButton && $(settings.cancelButton, this).click(function(event) { var returnVal = settings.onCancel.call($el, event); if (returnVal !== false) { $el.trigger('crmFormCancel', event); - if ($el.data('dialog') && settings.autoClose) { + if ($el.data('uiDialog') && settings.autoClose) { $el.dialog('close'); } else if (!settings.autoClose) { @@ -987,7 +987,7 @@ CRM.validate = CRM.validate || { { $el.crmSnippet('option', 'url', response.userContext).crmSnippet('refresh'); } - else if ($el.data('dialog') && settings.autoClose) { + else if ($el.data('uiDialog') && settings.autoClose) { $el.dialog('close'); } } -- 2.25.1