mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 21:15:56 +00:00
add hotkey to catchup all feeds, add optional warning to catchupAllFeeds()
This commit is contained in:
@@ -347,6 +347,12 @@ function hotkey_handler(e) {
|
||||
}
|
||||
}
|
||||
|
||||
if (keycode == 81 && shift_key) { // shift + q
|
||||
if (typeof catchupAllFeeds != 'undefined') {
|
||||
return catchupAllFeeds();
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof localHotkeyHandler != 'undefined') {
|
||||
try {
|
||||
return localHotkeyHandler(e);
|
||||
|
||||
@@ -130,7 +130,7 @@ print T_js_decl("Publish article");
|
||||
print T_js_decl("Unpublish article");
|
||||
print T_js_decl("You can't clear this type of feed.");
|
||||
print T_js_decl("Erase all non-starred articles in %s?");
|
||||
#print T_js_decl(
|
||||
print T_js_decl("Mark all articles as read?");
|
||||
#print T_js_decl(
|
||||
#print T_js_decl(
|
||||
#print T_js_decl(
|
||||
|
||||
@@ -219,6 +219,10 @@ function updateFeedList(silent, fetch) {
|
||||
|
||||
function catchupAllFeeds() {
|
||||
|
||||
var str = __("Mark all articles as read?");
|
||||
|
||||
if (getInitParam("confirm_feed_catchup") != 1 || confirm(str)) {
|
||||
|
||||
var query_str = "backend.php?op=feeds&subop=catchupAll";
|
||||
|
||||
notify_progress("Marking all feeds as read...");
|
||||
@@ -232,7 +236,7 @@ function catchupAllFeeds() {
|
||||
|
||||
global_unread = 0;
|
||||
updateTitle("");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
function viewCurrentFeed(subop) {
|
||||
|
||||
Reference in New Issue
Block a user