From 3fc02b89bfa99a19c148e5e5d597ee6c3c48ee3f Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sun, 28 Apr 2013 16:38:05 -0700 Subject: [PATCH] Fix custom data popup CRM-12403 --- templates/CRM/Case/Page/CustomDataView.tpl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/templates/CRM/Case/Page/CustomDataView.tpl b/templates/CRM/Case/Page/CustomDataView.tpl index 0ca6104f5c..f3f8b34578 100644 --- a/templates/CRM/Case/Page/CustomDataView.tpl +++ b/templates/CRM/Case/Page/CustomDataView.tpl @@ -127,15 +127,22 @@ url: dataURL, success: function(content) { cj('#case_custom_edit').show( ).html(content).dialog({ - title: "Update Custom Information", + title: "{/literal}{ts escape='js'}Update Case Information{/ts}{literal}", modal: true, width: 680, overlay: { opacity: 0.5, background: "black" }, + open: function() { + var dialog = this; + cj('#_qf_CustomData_cancel').click(function() { + cj(dialog).dialog('close'); + return false; + }); + }, close: function(event, ui) { - cj('#case_custom_edit').fadeOut(5000); + cj(this).dialog('destroy'); } }); } -- 2.25.1