diff options
author | Andrew Dolgov <[email protected]> | 2010-11-16 16:47:56 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-16 16:47:56 +0300 |
commit | 457d48499a60ea1d07587eb08bb09c6fa81c8bfb (patch) | |
tree | 0d49c453f81c20acddfe22c14b7e5dabf5101eb4 | |
parent | db34e084e70d8561263310496a90dc01ccc7388b (diff) |
fix for dialogs not being disposed properly
-rw-r--r-- | functions.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/functions.js b/functions.js index 4a6d09d4d..a040ae65d 100644 --- a/functions.js +++ b/functions.js @@ -408,11 +408,6 @@ function displayDlg(id, param, callback) { notify_progress("Loading, please wait...", true); - if (dijit.byId("infoBox")) { - dialogs.pop(); - dijit.byId("infoBox").destroy(); - } - var query = "?op=dlg&id=" + param_escape(id) + "¶m=" + param_escape(param); @@ -443,6 +438,10 @@ function infobox_submit_callback2(transport) { function infobox_callback2(transport) { try { + if (dijit.byId("infoBox")) { + dialogs.pop(); + dijit.byId("infoBox").destroy(); + } //console.log("infobox_callback2"); notify(''); |