]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix for dialogs not being disposed properly
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 16 Nov 2010 13:47:56 +0000 (16:47 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 16 Nov 2010 13:47:56 +0000 (16:47 +0300)
functions.js

index 4a6d09d4dcd2b8c55ef6da1eeb7dba02d589a84e..a040ae65dfe5c7fb653c18139d8a703715b1efeb 100644 (file)
@@ -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('');