summaryrefslogtreecommitdiff
path: root/js/App.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-12 18:43:30 +0300
committerAndrew Dolgov <[email protected]>2021-02-12 18:43:30 +0300
commitad7842c98af21bf400c0f347455a3a8432c01140 (patch)
tree1901428522ab2372daadf72683cf2dd60597c269 /js/App.js
parent9330bde9917c0813fdf874a179cb45e1361edd47 (diff)
RIP tag cloud: last of the vanilla popup dialog system
Diffstat (limited to 'js/App.js')
-rw-r--r--js/App.js40
1 files changed, 0 insertions, 40 deletions
diff --git a/js/App.js b/js/App.js
index 8ea6c70b3..483d22211 100644
--- a/js/App.js
+++ b/js/App.js
@@ -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;