|
|
@ -342,48 +342,43 @@ function displayDlg(title, id, param, callback) {
|
|
|
|
const query = { op: "dlg", method: id, param: param };
|
|
|
|
const query = { op: "dlg", method: id, param: param };
|
|
|
|
|
|
|
|
|
|
|
|
xhrPost("backend.php", query, (transport) => {
|
|
|
|
xhrPost("backend.php", query, (transport) => {
|
|
|
|
infobox_callback2(transport, title);
|
|
|
|
try {
|
|
|
|
if (callback) callback(transport);
|
|
|
|
const content = transport.responseText;
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
let dialog = dijit.byId("infoBox");
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
if (!dialog) {
|
|
|
|
|
|
|
|
dialog = new dijit.Dialog({
|
|
|
|
function infobox_callback2(transport, title) {
|
|
|
|
title: title,
|
|
|
|
let dialog = false;
|
|
|
|
id: 'infoBox',
|
|
|
|
|
|
|
|
style: "width: 600px",
|
|
|
|
if (dijit.byId("infoBox")) {
|
|
|
|
onCancel: function () {
|
|
|
|
dialog = dijit.byId("infoBox");
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
onExecute: function () {
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
onClose: function () {
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
content: content
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
dialog.attr('title', title);
|
|
|
|
|
|
|
|
dialog.attr('content', content);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//console.log("infobox_callback2");
|
|
|
|
dialog.show();
|
|
|
|
notify('');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const content = transport.responseText;
|
|
|
|
notify("");
|
|
|
|
|
|
|
|
|
|
|
|
if (!dialog) {
|
|
|
|
if (callback) callback(transport);
|
|
|
|
dialog = new dijit.Dialog({
|
|
|
|
} catch (e) {
|
|
|
|
title: title,
|
|
|
|
exception_error(e);
|
|
|
|
id: 'infoBox',
|
|
|
|
}
|
|
|
|
style: "width: 600px",
|
|
|
|
});
|
|
|
|
onCancel: function() {
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
onExecute: function() {
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
onClose: function() {
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
content: content});
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
dialog.attr('title', title);
|
|
|
|
|
|
|
|
dialog.attr('content', content);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dialog.show();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
notify("");
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function getInitParam(key) {
|
|
|
|
function getInitParam(key) {
|
|
|
|