add hotkey to catchup all feeds, add optional warning to catchupAllFeeds()
This commit is contained in:
parent
06925d9e85
commit
f8232151a0
3 changed files with 20 additions and 10 deletions
|
@ -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') {
|
if (typeof localHotkeyHandler != 'undefined') {
|
||||||
try {
|
try {
|
||||||
return localHotkeyHandler(e);
|
return localHotkeyHandler(e);
|
||||||
|
|
|
@ -130,7 +130,7 @@ print T_js_decl("Publish article");
|
||||||
print T_js_decl("Unpublish article");
|
print T_js_decl("Unpublish article");
|
||||||
print T_js_decl("You can't clear this type of feed.");
|
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("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(
|
#print T_js_decl(
|
||||||
#print T_js_decl(
|
#print T_js_decl(
|
||||||
|
|
22
tt-rss.js
22
tt-rss.js
|
@ -219,20 +219,24 @@ function updateFeedList(silent, fetch) {
|
||||||
|
|
||||||
function catchupAllFeeds() {
|
function catchupAllFeeds() {
|
||||||
|
|
||||||
var query_str = "backend.php?op=feeds&subop=catchupAll";
|
var str = __("Mark all articles as read?");
|
||||||
|
|
||||||
notify_progress("Marking all feeds as read...");
|
if (getInitParam("confirm_feed_catchup") != 1 || confirm(str)) {
|
||||||
|
|
||||||
debug("catchupAllFeeds Q=" + query_str);
|
var query_str = "backend.php?op=feeds&subop=catchupAll";
|
||||||
|
|
||||||
new Ajax.Request(query_str, {
|
notify_progress("Marking all feeds as read...");
|
||||||
onComplete: function(transport) {
|
|
||||||
feedlist_callback2(transport);
|
|
||||||
} });
|
|
||||||
|
|
||||||
global_unread = 0;
|
debug("catchupAllFeeds Q=" + query_str);
|
||||||
updateTitle("");
|
|
||||||
|
|
||||||
|
new Ajax.Request(query_str, {
|
||||||
|
onComplete: function(transport) {
|
||||||
|
feedlist_callback2(transport);
|
||||||
|
} });
|
||||||
|
|
||||||
|
global_unread = 0;
|
||||||
|
updateTitle("");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function viewCurrentFeed(subop) {
|
function viewCurrentFeed(subop) {
|
||||||
|
|
Loading…
Reference in a new issue