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

add hotkey f w: resort feedlist by name or unread count

This commit is contained in:
Andrew Dolgov
2008-05-20 13:04:30 +01:00
parent 60ea23775a
commit 61a20560f2
3 changed files with 23 additions and 4 deletions

View File

@@ -17,6 +17,7 @@ var hotkey_prefix = false;
var init_params = new Object();
var ver_offset = 0;
var hor_offset = 0;
var feeds_sort_by_unread = false;
function tagsAreDisplayed() {
return display_tags;
@@ -451,6 +452,7 @@ function init_second_stage() {
daemon_enabled = getInitParam("daemon_enabled") == 1;
daemon_refresh_only = getInitParam("daemon_refresh_only") == 1;
feeds_sort_by_unread = getInitParam("feeds_sort_by_unread") == 1;
setTimeout('updateFeedList(false, false)', 50);
@@ -1220,6 +1222,7 @@ function hotkey_handler(e) {
}
if (keycode == 87) { // w
feeds_sort_by_unread = !feeds_sort_by_unread;
return resort_feedlist();
}
@@ -1288,3 +1291,7 @@ function hotkey_handler(e) {
exception_error("hotkey_handler", e);
}
}
function feedsSortByUnread() {
return feeds_sort_by_unread;
}