1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 13:15:55 +00:00

shorten pref tab names; make log-alert clickable

This commit is contained in:
Andrew Dolgov
2021-02-11 15:49:32 +03:00
parent cc646790fd
commit 74986d1ac6
15 changed files with 25 additions and 16 deletions

View File

@@ -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});