From e331188f761669785024bc0f76debb904a1b6210 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 10 Dec 2011 21:26:59 +0400 Subject: misc typo fixes --- tt-rss.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'tt-rss.js') diff --git a/tt-rss.js b/tt-rss.js index 321a74c17..39e5cecef 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -490,8 +490,6 @@ function parse_runtime_info(data) { return; } - var error_flag; - if (k == "daemon_is_running" && v != 1) { notify_error("Update daemon is not running.", true); return; @@ -521,7 +519,7 @@ function catchupCurrentFeed() { var str = __("Mark all articles in %s as read?").replace("%s", fn); if (getInitParam("confirm_feed_catchup") != 1 || confirm(str)) { - return viewCurrentFeed('MarkAllRead') + return viewCurrentFeed('MarkAllRead'); } } @@ -534,7 +532,7 @@ function catchupFeedInGroup(id) { var str = __("Mark all articles in %s as read?").replace("%s", title); if (getInitParam("confirm_feed_catchup") != 1 || confirm(str)) { - return viewCurrentFeed('MarkAllReadGR:' + id) + return viewCurrentFeed('MarkAllReadGR:' + id); } } catch (e) { @@ -566,11 +564,11 @@ function collapse_feedlist() { } function viewModeChanged() { - return viewCurrentFeed('') + return viewCurrentFeed(''); } function viewLimitChanged() { - return viewCurrentFeed('') + return viewCurrentFeed(''); } /* function adjustArticleScore(id, score) { @@ -628,7 +626,7 @@ function hotkey_handler(e) { if (e.target.nodeName == "INPUT" || e.target.nodeName == "TEXTAREA") return; - var keycode; + var keycode = false; var shift_key = false; var cmdline = $('cmdline'); @@ -780,7 +778,7 @@ function hotkey_handler(e) { } if (keycode == 85) { // u - selectionToggleUnread(undefined, false, true) + selectionToggleUnread(undefined, false, true); return; } -- cgit v1.2.3-54-g00ecf From b167df5e60143efbd4cc9121b7c4825f4f6608d1 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 10 Dec 2011 22:40:12 +0400 Subject: js: misc cleanup --- feedlist.js | 4 ---- functions.php | 8 ++++---- help/3.php | 3 --- tt-rss.js | 5 ----- viewfeed.js | 8 -------- 5 files changed, 4 insertions(+), 24 deletions(-) (limited to 'tt-rss.js') diff --git a/feedlist.js b/feedlist.js index e0ffae7f1..62c44b494 100644 --- a/feedlist.js +++ b/feedlist.js @@ -378,10 +378,6 @@ function getFeedUnread(feed, is_cat) { return -1; } -function resort_feedlist() { - console.warn("resort_feedlist: function not implemented"); -} - function hideOrShowFeeds(hide) { var tree = dijit.byId("feedTree"); diff --git a/functions.php b/functions.php index a1dffc853..cad0b21c3 100644 --- a/functions.php +++ b/functions.php @@ -5077,24 +5077,24 @@ $marked_pic = "\"Unstar"; + onclick='javascript:toggleMark($id)'>"; } else { $marked_pic = "\"Star"; + onclick='javascript:toggleMark($id)'>"; } if ($line["published"] == "t" || $line["published"] == "1") { $published_pic = "\"Unpublish"; + alt=\"Unpublish article\" onclick='javascript:togglePub($id)'>"; } else { $published_pic = "\"Publish"; + alt=\"Publish article\" onclick='javascript:togglePub($id)'>"; } # $content_link = "" . diff --git a/help/3.php b/help/3.php index fa2ee4582..e1812b3f2 100644 --- a/help/3.php +++ b/help/3.php @@ -33,7 +33,6 @@ c l c f c s - ? @@ -52,11 +51,9 @@ - - diff --git a/tt-rss.js b/tt-rss.js index 39e5cecef..36e0d8cc4 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -914,11 +914,6 @@ function hotkey_handler(e) { } } - if (keycode == 87) { // w - feeds_sort_by_unread = !feeds_sort_by_unread; - return resort_feedlist(); - } - if (keycode == 88) { // x reverseHeadlineOrder(); return; diff --git a/viewfeed.js b/viewfeed.js index 52f081ba0..c7236c601 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -404,14 +404,6 @@ function view(id) { } } -function tMark(id) { - return toggleMark(id); -} - -function tPub(id) { - return togglePub(id); -} - function toggleMark(id, client_only) { try { var query = "?op=rpc&id=" + id + "&subop=mark"; -- cgit v1.2.3-54-g00ecf
f r
f a
f s
f e
f q
f x
Q