fix batchSubDlg and feedAddDlg not working properly if invoked one after another because of overlapping widgets

This commit is contained in:
Andrew Dolgov 2012-11-08 18:31:14 +04:00
parent bb4cd19be8
commit c714cee73b
2 changed files with 6 additions and 4 deletions

View file

@ -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",

View file

@ -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",