From: Andrew Dolgov Date: Tue, 16 Nov 2010 13:47:56 +0000 (+0300) Subject: fix for dialogs not being disposed properly X-Git-Tag: 1.5.0~190 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=457d48499a60ea1d07587eb08bb09c6fa81c8bfb;p=tt-rss.git fix for dialogs not being disposed properly --- 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('');