mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 12:05:57 +00:00
remove infobox_callback2
This commit is contained in:
@@ -342,25 +342,11 @@ 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);
|
|
||||||
});
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function infobox_callback2(transport, title) {
|
|
||||||
let dialog = false;
|
|
||||||
|
|
||||||
if (dijit.byId("infoBox")) {
|
|
||||||
dialog = dijit.byId("infoBox");
|
|
||||||
}
|
|
||||||
|
|
||||||
//console.log("infobox_callback2");
|
|
||||||
notify('');
|
|
||||||
|
|
||||||
const content = transport.responseText;
|
const content = transport.responseText;
|
||||||
|
|
||||||
|
let dialog = dijit.byId("infoBox");
|
||||||
|
|
||||||
if (!dialog) {
|
if (!dialog) {
|
||||||
dialog = new dijit.Dialog({
|
dialog = new dijit.Dialog({
|
||||||
title: title,
|
title: title,
|
||||||
@@ -375,7 +361,8 @@ function infobox_callback2(transport, title) {
|
|||||||
onClose: function () {
|
onClose: function () {
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
content: content});
|
content: content
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
dialog.attr('title', title);
|
dialog.attr('title', title);
|
||||||
dialog.attr('content', content);
|
dialog.attr('content', content);
|
||||||
@@ -384,6 +371,14 @@ function infobox_callback2(transport, title) {
|
|||||||
dialog.show();
|
dialog.show();
|
||||||
|
|
||||||
notify("");
|
notify("");
|
||||||
|
|
||||||
|
if (callback) callback(transport);
|
||||||
|
} catch (e) {
|
||||||
|
exception_error(e);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getInitParam(key) {
|
function getInitParam(key) {
|
||||||
|
|||||||
Reference in New Issue
Block a user