fix filter and feed dialogs breaking each other

This commit is contained in:
Andrew Dolgov 2011-12-28 14:43:55 +04:00
parent 97f0b075bf
commit 4cd3011163
2 changed files with 9 additions and 0 deletions

View File

@ -969,6 +969,9 @@ function quickAddFilter() {
try { try {
var query = "backend.php?op=dlg&method=quickAddFilter"; var query = "backend.php?op=dlg&method=quickAddFilter";
if (dijit.byId("feedEditDlg"))
dijit.byId("feedEditDlg").destroyRecursive();
if (dijit.byId("filterEditDlg")) if (dijit.byId("filterEditDlg"))
dijit.byId("filterEditDlg").destroyRecursive(); dijit.byId("filterEditDlg").destroyRecursive();
@ -1392,6 +1395,9 @@ function editFeed(feed, event) {
console.log(query); console.log(query);
if (dijit.byId("filterEditDlg"))
dijit.byId("filterEditDlg").destroyRecursive();
if (dijit.byId("feedEditDlg")) if (dijit.byId("feedEditDlg"))
dijit.byId("feedEditDlg").destroyRecursive(); dijit.byId("feedEditDlg").destroyRecursive();

View File

@ -126,6 +126,9 @@ function editFilter(id) {
var query = "backend.php?op=pref-filters&method=edit&id=" + param_escape(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")) if (dijit.byId("filterEditDlg"))
dijit.byId("filterEditDlg").destroyRecursive(); dijit.byId("filterEditDlg").destroyRecursive();