From: Andrew Dolgov Date: Wed, 28 Dec 2011 10:43:55 +0000 (+0400) Subject: fix filter and feed dialogs breaking each other X-Git-Tag: 1.5.9~17 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=4cd3011163c9405845ccbff121c81486774b878b;p=tt-rss.git fix filter and feed dialogs breaking each other --- diff --git a/js/functions.js b/js/functions.js index 9b30bb30..bd0d5fb7 100644 --- a/js/functions.js +++ b/js/functions.js @@ -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(); diff --git a/js/prefs.js b/js/prefs.js index ee3657e2..ce233b74 100644 --- a/js/prefs.js +++ b/js/prefs.js @@ -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();