]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix batchSubDlg and feedAddDlg not working properly if invoked one after another...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 8 Nov 2012 14:31:14 +0000 (18:31 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 8 Nov 2012 14:31:14 +0000 (18:31 +0400)
js/functions.js
js/prefs.js

index e9dcf3f3af1eb934f21861363ae9831d7ed6e423..e80c860e0e85b7173d9e3e696c77d1ba56c69a28 100644 (file)
@@ -838,8 +838,9 @@ function quickAddFeed() {
        try {
                var query = "backend.php?op=dlg&method=quickAddFeed";
 
-               if (dijit.byId("feedAddDlg"))
-                       dijit.byId("feedAddDlg").destroyRecursive();
+               // overlapping widgets
+               if (dijit.byId("batchSubDlg")) dijit.byId("batchSubDlg").destroyRecursive();
+               if (dijit.byId("feedAddDlg"))   dijit.byId("feedAddDlg").destroyRecursive();
 
                var dialog = new dijit.Dialog({
                        id: "feedAddDlg",
index ded6c345906c13c49bd248c7e1d532b552781f88..1d21e0cd5ddf737a25bea6b12c3ffdead31c5de8 100644 (file)
@@ -2177,8 +2177,9 @@ function batchSubscribe() {
        try {
                var query = "backend.php?op=dlg&method=batchSubscribe";
 
-               if (dijit.byId("batchSubDlg"))
-                       dijit.byId("batchSubDlg").destroyRecursive();
+               // overlapping widgets
+               if (dijit.byId("batchSubDlg")) dijit.byId("batchSubDlg").destroyRecursive();
+               if (dijit.byId("feedAddDlg"))   dijit.byId("feedAddDlg").destroyRecursive();
 
                var dialog = new dijit.Dialog({
                        id: "batchSubDlg",