From: Coleman Watts Date: Sun, 28 Apr 2013 23:38:05 +0000 (-0700) Subject: Fix custom data popup CRM-12403 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3fc02b89bfa99a19c148e5e5d597ee6c3c48ee3f;p=civicrm-core.git Fix custom data popup CRM-12403 --- 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'); } }); }