From ad7842c98af21bf400c0f347455a3a8432c01140 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 12 Feb 2021 18:43:30 +0300 Subject: RIP tag cloud: last of the vanilla popup dialog system --- js/App.js | 40 ---------------------------------------- 1 file changed, 40 deletions(-) (limited to 'js/App.js') 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; -- cgit v1.2.3