Fix custom data popup CRM-12403
authorColeman Watts <coleman@civicrm.org>
Sun, 28 Apr 2013 23:38:05 +0000 (16:38 -0700)
committerColeman Watts <coleman@civicrm.org>
Sun, 28 Apr 2013 23:38:05 +0000 (16:38 -0700)
templates/CRM/Case/Page/CustomDataView.tpl

index 0ca6104f5c82f71dc4953ebc55bf8f55a3a6b3a7..f3f8b3457822e95bb1172bb0aba39d8cefbf4c05 100644 (file)
       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');
           }
         });
       }