summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-16 16:47:56 +0300
committerAndrew Dolgov <[email protected]>2010-11-16 16:47:56 +0300
commit457d48499a60ea1d07587eb08bb09c6fa81c8bfb (patch)
tree0d49c453f81c20acddfe22c14b7e5dabf5101eb4 /functions.js
parentdb34e084e70d8561263310496a90dc01ccc7388b (diff)
fix for dialogs not being disposed properly
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js9
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) + "&param=" + 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('');