]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix filter and feed dialogs breaking each other
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 28 Dec 2011 10:43:55 +0000 (14:43 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 28 Dec 2011 10:43:55 +0000 (14:43 +0400)
js/functions.js
js/prefs.js

index 9b30bb302407b681e6e1c62ac18534a4014e5ef7..bd0d5fb731743bdb94cd123be7d44c8ad4926031 100644 (file)
@@ -969,6 +969,9 @@ function quickAddFilter() {
        try {
                var query = "backend.php?op=dlg&method=quickAddFilter";
 
+               if (dijit.byId("feedEditDlg"))
+                       dijit.byId("feedEditDlg").destroyRecursive();
+
                if (dijit.byId("filterEditDlg"))
                        dijit.byId("filterEditDlg").destroyRecursive();
 
@@ -1392,6 +1395,9 @@ function editFeed(feed, event) {
 
                console.log(query);
 
+               if (dijit.byId("filterEditDlg"))
+                       dijit.byId("filterEditDlg").destroyRecursive();
+
                if (dijit.byId("feedEditDlg"))
                        dijit.byId("feedEditDlg").destroyRecursive();
 
index ee3657e287b642d6e86184380a81ba9e18626982..ce233b749d3fde300a827a9e30f1dbe2953879a1 100644 (file)
@@ -126,6 +126,9 @@ function editFilter(id) {
 
                var query = "backend.php?op=pref-filters&method=edit&id=" + param_escape(id);
 
+               if (dijit.byId("feedEditDlg"))
+                       dijit.byId("feedEditDlg").destroyRecursive();
+
                if (dijit.byId("filterEditDlg"))
                        dijit.byId("filterEditDlg").destroyRecursive();