From c714cee73bb3f4f6a449c0f45e195026aca4f1a6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 8 Nov 2012 18:31:14 +0400 Subject: [PATCH] fix batchSubDlg and feedAddDlg not working properly if invoked one after another because of overlapping widgets --- js/functions.js | 5 +++-- js/prefs.js | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/js/functions.js b/js/functions.js index e9dcf3f3..e80c860e 100644 --- a/js/functions.js +++ b/js/functions.js @@ -838,8 +838,9 @@ function quickAddFeed() { try { var query = "backend.php?op=dlg&method=quickAddFeed"; - if (dijit.byId("feedAddDlg")) - dijit.byId("feedAddDlg").destroyRecursive(); + // overlapping widgets + if (dijit.byId("batchSubDlg")) dijit.byId("batchSubDlg").destroyRecursive(); + if (dijit.byId("feedAddDlg")) dijit.byId("feedAddDlg").destroyRecursive(); var dialog = new dijit.Dialog({ id: "feedAddDlg", diff --git a/js/prefs.js b/js/prefs.js index ded6c345..1d21e0cd 100644 --- a/js/prefs.js +++ b/js/prefs.js @@ -2177,8 +2177,9 @@ function batchSubscribe() { try { var query = "backend.php?op=dlg&method=batchSubscribe"; - if (dijit.byId("batchSubDlg")) - dijit.byId("batchSubDlg").destroyRecursive(); + // overlapping widgets + if (dijit.byId("batchSubDlg")) dijit.byId("batchSubDlg").destroyRecursive(); + if (dijit.byId("feedAddDlg")) dijit.byId("feedAddDlg").destroyRecursive(); var dialog = new dijit.Dialog({ id: "batchSubDlg", -- 2.39.5