1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 10:45:56 +00:00

RIP tag cloud: last of the vanilla popup dialog system

This commit is contained in:
Andrew Dolgov
2021-02-12 18:43:30 +03:00
parent 9330bde991
commit ad7842c98a
3 changed files with 0 additions and 120 deletions

View File

@@ -321,40 +321,6 @@ const App = {
dialog.show();
});
},
displayDlg: function(title, id, param, callback) {
Notify.progress("Loading, please wait...", true);
const query = {op: "dlg", method: id, param: param};
xhrPost("backend.php", query, (transport) => {
try {
const content = transport.responseText;
let dialog = dijit.byId("infoBox");
if (!dialog) {
dialog = new fox.SingleUseDialog({
title: title,
id: 'infoBox',
content: content
});
} else {
dialog.attr('title', title);
dialog.attr('content', content);
}
dialog.show();
Notify.close();
if (callback) callback(transport);
} catch (e) {
this.Error.report(e);
}
});
return false;
},
handleRpcJson: function(transport) {
const netalert = $$("#toolbar .net-alert")[0];
@@ -1082,9 +1048,6 @@ const App = {
this.hotkey_actions["goto_published"] = () => {
Feeds.open({feed: -2});
};
this.hotkey_actions["goto_tagcloud"] = () => {
this.displayDlg(__("Tag cloud"), "printTagCloud");
};
this.hotkey_actions["goto_prefs"] = () => {
App.openPreferences();
};
@@ -1162,9 +1125,6 @@ const App = {
case "qmcLogout":
App.postCurrentWindow("public.php", {op: "logout", csrf_token: __csrf_token});
break;
case "qmcTagCloud":
this.displayDlg(__("Tag cloud"), "printTagCloud");
break;
case "qmcSearch":
Feeds.search();
break;