diff options
author | Andrew Dolgov <[email protected]> | 2010-11-16 16:20:15 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-16 16:20:15 +0300 |
commit | 154d2ac4fe95614a35921a3e0506c6ed60fc7e69 (patch) | |
tree | dfa8d6ac12698f180613ce3056d52425018298aa | |
parent | ab7a597cb89a239edd6521d34c6b88fc648617a3 (diff) |
dijit.dialog canceling change
-rw-r--r-- | functions.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/functions.js b/functions.js index 7e826ab3e..40779a06e 100644 --- a/functions.js +++ b/functions.js @@ -395,7 +395,8 @@ function closeInfoBox(cleanup) { var dialog = dialogs.pop(); if (dialog) { - dialog.destroy(); + dialog.attr('content', ''); + dialog.hide(); } } catch (e) { @@ -469,16 +470,17 @@ function infobox_callback2(transport) { style: "width: 600px", onCancel: function() { dialogs.remove(this); - this.destroy(); + this.attr('content', ''); return true; }, onExecute: function() { dialogs.remove(this); - this.destroy(); + this.attr('content', ''); return true; }, onClose: function() { dialogs.remove(this); + this.attr('content', ''); return true; }, content: content}); |