diff options
author | Andrew Dolgov <[email protected]> | 2012-11-08 18:31:14 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-11-08 18:31:14 +0400 |
commit | c714cee73bb3f4f6a449c0f45e195026aca4f1a6 (patch) | |
tree | 31c0db45322ed83a7dbd66a76a32985ef4cc7427 | |
parent | bb4cd19be8d1998d2b2127e183278e717cc93979 (diff) |
fix batchSubDlg and feedAddDlg not working properly if invoked one after another because of overlapping widgets
-rw-r--r-- | js/functions.js | 5 | ||||
-rw-r--r-- | js/prefs.js | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/js/functions.js b/js/functions.js index e9dcf3f3a..e80c860e0 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 ded6c3459..1d21e0cd5 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", |