summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-16 14:43:43 +0300
committerAndrew Dolgov <[email protected]>2010-11-16 14:43:43 +0300
commit6f3976c9a3a0409b16d1125802b88651213b0aae (patch)
tree8e054d61d4eabf671a4f6582c274d537f5758745 /functions.js
parent07bb58c7217cdcdc89d7209780c0f6b952e70e7e (diff)
support opening articles in new tab, misc fixes
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/functions.js b/functions.js
index 362fc9888..7e826ab3e 100644
--- a/functions.js
+++ b/functions.js
@@ -394,8 +394,9 @@ function closeInfoBox(cleanup) {
var dialog = dialogs.pop();
- if (dialog)
- dialog.hide();
+ if (dialog) {
+ dialog.destroy();
+ }
} catch (e) {
//exception_error("closeInfoBox", e);
@@ -408,6 +409,9 @@ function displayDlg(id, param, callback) {
notify_progress("Loading, please wait...", true);
+ while (dialogs.length > 0)
+ closeInfoBox();
+
var query = "?op=dlg&id=" +
param_escape(id) + "&param=" + param_escape(param);
@@ -465,10 +469,12 @@ function infobox_callback2(transport) {
style: "width: 600px",
onCancel: function() {
dialogs.remove(this);
+ this.destroy();
return true;
},
onExecute: function() {
dialogs.remove(this);
+ this.destroy();
return true;
},
onClose: function() {