fix batchSubDlg and feedAddDlg not working properly if invoked one after another because of overlapping widgets
This commit is contained in:
parent
bb4cd19be8
commit
c714cee73b
2 changed files with 6 additions and 4 deletions
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue