shorten pref tab names; make log-alert clickable
This commit is contained in:
@@ -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});
|
||||
|
||||
+1
-1
@@ -92,7 +92,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio
|
||||
let search = (searchElem) ? searchElem.value : "";
|
||||
|
||||
xhrPost("backend.php", { op: "pref-feeds", search: search }, (transport) => {
|
||||
dijit.byId('feedConfigTab').attr('content', transport.responseText);
|
||||
dijit.byId('feedsTab').attr('content', transport.responseText);
|
||||
Notify.close();
|
||||
});
|
||||
},
|
||||
|
||||
@@ -90,7 +90,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio
|
||||
if (user_search) { search = user_search.value; }
|
||||
|
||||
xhrPost("backend.php", { op: "pref-filters", search: search }, (transport) => {
|
||||
dijit.byId('filterConfigTab').attr('content', transport.responseText);
|
||||
dijit.byId('filtersTab').attr('content', transport.responseText);
|
||||
Notify.close();
|
||||
});
|
||||
},
|
||||
|
||||
+2
-2
@@ -58,7 +58,7 @@ const Helpers = {
|
||||
},
|
||||
update: function() {
|
||||
xhrPost("backend.php", { op: "pref-system", severity: dijit.byId("severity").attr('value'), page: Helpers.EventLog.log_page }, (transport) => {
|
||||
dijit.byId('systemConfigTab').attr('content', transport.responseText);
|
||||
dijit.byId('systemTab').attr('content', transport.responseText);
|
||||
Notify.close();
|
||||
});
|
||||
},
|
||||
@@ -206,7 +206,7 @@ const Helpers = {
|
||||
},
|
||||
refresh: function() {
|
||||
xhrPost("backend.php", { op: "pref-prefs" }, (transport) => {
|
||||
dijit.byId('genConfigTab').attr('content', transport.responseText);
|
||||
dijit.byId('prefsTab').attr('content', transport.responseText);
|
||||
Notify.close();
|
||||
});
|
||||
},
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dijit/f
|
||||
},
|
||||
reload: function() {
|
||||
xhrPost("backend.php", { op: "pref-labels" }, (transport) => {
|
||||
dijit.byId('labelConfigTab').attr('content', transport.responseText);
|
||||
dijit.byId('labelsTab').attr('content', transport.responseText);
|
||||
Notify.close();
|
||||
});
|
||||
},
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ const Users = {
|
||||
const search = user_search ? user_search.value : "";
|
||||
|
||||
xhrPost("backend.php", { op: "pref-users", sort: sort, search: search }, (transport) => {
|
||||
dijit.byId('userConfigTab').attr('content', transport.responseText);
|
||||
dijit.byId('usersTab').attr('content', transport.responseText);
|
||||
Notify.close();
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user