From: Andrew Dolgov Date: Sun, 15 Feb 2009 19:41:16 +0000 (+0300) Subject: offline: actions dropdown works X-Git-Tag: 1.3.1~11 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=46b84d2998e7e30722592373b8d3677f345e0963;p=tt-rss.git offline: actions dropdown works --- diff --git a/offline.js b/offline.js index e146b55e..3b3695fa 100644 --- a/offline.js +++ b/offline.js @@ -146,16 +146,29 @@ function viewfeed_offline(feed_id, subop, is_cat, subop_param, skip_history, off var sel_none_link; var sel_inv_link; + var catchup_feed_link = "javascript:catchupCurrentFeed()"; + var catchup_sel_link = "javascript:catchupSelection()"; + + var tog_unread_link; + var tog_marked_link; + if ($("content-frame")) { sel_all_link = "javascript:selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', true, '', true)"; sel_unread_link = "javascript:selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', true, 'Unread', true)"; sel_none_link = "javascript:selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', false)"; sel_inv_link = "javascript:invertHeadlineSelection()"; + + tog_unread_link = "javascript:selectionToggleUnread()"; + tog_marked_link = "javascript:selectionToggleMarked()"; + } else { sel_all_link = "javascript:cdmSelectArticles('all')"; sel_unread_link = "javascript:cdmSelectArticles('unread')"; sel_none_link = "javascript:cdmSelectArticles('none')"; sel_inv_link = "javascript:invertHeadlineSelection()"; + + tog_unread_link = "javascript:selectionToggleUnread(true)"; + tog_marked_link = "javascript:selectionToggleMarked(true)"; } tmp += __('Select:')+ @@ -174,11 +187,6 @@ function viewfeed_offline(feed_id, subop, is_cat, subop_param, skip_history, off tmp += "