From e309da54c4df1c1094227628388443362ea9c5e6 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 3 Sep 2014 22:53:29 +0100 Subject: [PATCH] CRM-13863 - Ensure dialog is unblocked on form errors --- js/crm.ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/crm.ajax.js b/js/crm.ajax.js index 5b78b0ef18..31eed91b2d 100644 --- a/js/crm.ajax.js +++ b/js/crm.ajax.js @@ -400,7 +400,6 @@ dataType: 'json', success: function(response) { if (response.content === undefined) { - $el.crmSnippet('option', 'block') && $el.unblock(); $el.trigger('crmFormSuccess', response); // Reset form for e.g. "save and new" if (response.userContext && (response.status === 'redirect' || (settings.refreshAction && $.inArray(response.buttonName, settings.refreshAction) >= 0))) { @@ -417,6 +416,7 @@ } } else { + $el.crmSnippet('option', 'block') && $el.unblock(); response.url = data.url; $el.html(response.content).trigger('crmLoad', response).trigger('crmFormLoad', response); if (response.status === 'form_error') { -- 2.25.1