]> git.wh0rd.org - tt-rss.git/blobdiff - functions.js
support opening articles in new tab, misc fixes
[tt-rss.git] / functions.js
index 362fc9888cc04bfa6c8dd67dc76b84e4bf363cbb..7e826ab3e7583fd886cbcbbeabd4b2a818e0e4f3 100644 (file)
@@ -394,8 +394,9 @@ function closeInfoBox(cleanup) {
 
                var dialog = dialogs.pop();
 
-               if (dialog)
-                       dialog.hide();
+               if (dialog) {
+                       dialog.destroy();
+               }
 
        } catch (e) {
                //exception_error("closeInfoBox", e);
@@ -408,6 +409,9 @@ function displayDlg(id, param, callback) {
 
        notify_progress("Loading, please wait...", true);
 
+       while (dialogs.length > 0)
+               closeInfoBox();
+
        var query = "?op=dlg&id=" +
                param_escape(id) + "&param=" + param_escape(param);
 
@@ -465,10 +469,12 @@ function infobox_callback2(transport) {
                        style: "width: 600px",
                        onCancel: function() {
                                dialogs.remove(this);
+                               this.destroy();
                                return true;
                        },
                        onExecute: function() {
                                dialogs.remove(this);
+                               this.destroy();
                                return true;
                        },
                        onClose: function() {