From 4cd3011163c9405845ccbff121c81486774b878b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 28 Dec 2011 14:43:55 +0400 Subject: [PATCH] fix filter and feed dialogs breaking each other --- js/functions.js | 6 ++++++ js/prefs.js | 3 +++ 2 files changed, 9 insertions(+) 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(); -- 2.39.5