summaryrefslogtreecommitdiff
path: root/js/App.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-11 15:49:32 +0300
committerAndrew Dolgov <[email protected]>2021-02-11 15:49:32 +0300
commit74986d1ac6e5d0433bff460aa2b0d1757c75f4b4 (patch)
treee0f0fc87e47a5e986f6a7035ce752823873988a4 /js/App.js
parentcc646790fdda3b476b199032005e89ea59f3d7f3 (diff)
shorten pref tab names; make log-alert clickable
Diffstat (limited to 'js/App.js')
-rw-r--r--js/App.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/js/App.js b/js/App.js
index 87c4bd3e7..db7797b75 100644
--- a/js/App.js
+++ b/js/App.js
@@ -1098,7 +1098,7 @@ const App = {
this.displayDlg(__("Tag cloud"), "printTagCloud");
};
this.hotkey_actions["goto_prefs"] = () => {
- document.location.href = "prefs.php";
+ App.openPreferences();
};
this.hotkey_actions["select_article_cursor"] = () => {
const id = Article.getUnderPointer();
@@ -1163,10 +1163,13 @@ const App = {
};
}
},
+ openPreferences: function(tab) {
+ document.location.href = "prefs.php" + (tab ? "?tab=" + tab : "");
+ },
onActionSelected: function(opid) {
switch (opid) {
case "qmcPrefs":
- document.location.href = "prefs.php";
+ App.openPreferences();
break;
case "qmcLogout":
App.postCurrentWindow("public.php", {op: "logout", csrf_token: __csrf_token});