remove infobox_callback2

master
Andrew Dolgov 6 years ago
parent c151607b91
commit e720e6b628

@ -342,25 +342,11 @@ function displayDlg(title, id, param, callback) {
const query = { op: "dlg", method: id, param: param };
xhrPost("backend.php", query, (transport) => {
infobox_callback2(transport, title);
if (callback) callback(transport);
});
return false;
}
function infobox_callback2(transport, title) {
let dialog = false;
if (dijit.byId("infoBox")) {
dialog = dijit.byId("infoBox");
}
//console.log("infobox_callback2");
notify('');
try {
const content = transport.responseText;
let dialog = dijit.byId("infoBox");
if (!dialog) {
dialog = new dijit.Dialog({
title: title,
@ -375,7 +361,8 @@ function infobox_callback2(transport, title) {
onClose: function () {
return true;
},
content: content});
content: content
});
} else {
dialog.attr('title', title);
dialog.attr('content', content);
@ -384,6 +371,14 @@ function infobox_callback2(transport, title) {
dialog.show();
notify("");
if (callback) callback(transport);
} catch (e) {
exception_error(e);
}
});
return false;
}
function getInitParam(key) {

Loading…
Cancel
Save