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();