From 457d48499a60ea1d07587eb08bb09c6fa81c8bfb Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 16 Nov 2010 16:47:56 +0300 Subject: [PATCH] fix for dialogs not being disposed properly --- functions.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/functions.js b/functions.js index 4a6d09d4..a040ae65 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(''); -- 2.39.5