]> git.wh0rd.org Git - tt-rss.git/commitdiff
offline: add placeholder actions dropbox
authorAndrew Dolgov <fox@bah.org.ru>
Fri, 13 Feb 2009 09:35:35 +0000 (12:35 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Fri, 13 Feb 2009 09:35:35 +0000 (12:35 +0300)
offline.js
tt-rss.js

index d9b32cf28b1701c51826ac73b032c40def1bcb4a..e146b55e1438b10e5285e71d6c37b28b8e17ad31 100644 (file)
@@ -166,6 +166,30 @@ function viewfeed_offline(feed_id, subop, is_cat, subop_param, skip_history, off
        
                                tmp += "&nbsp;&nbsp;";
        
+                               tmp += "<span onmouseover=\"enable_selection(false)\" "+
+                                       "onmouseout=\"enable_selection(true) \"" +
+                                       "onclick=\"toggleHeadlineActions()\" id=\"headlineActionsDrop\">" +
+                                       __("Actions...") + "&nbsp;&nbsp;<img src=\"images/down_arrow.png\">" +
+                               "</span>";
+
+                               tmp += "<ul id=\"headlineActionsBody\" style=\"display : none\">";
+
+                               var tog_unread_link = "";
+                               var tog_marked_link = "";
+                               var catchup_sel_link = "";
+                               var catchup_feed_link = "";
+
+                               tmp += "<li class=\"insensitive\">"+__('Selection toggle:')+"</li>"+
+                               "<li onclick=\""+tog_unread_link+"\">&nbsp;&nbsp;"+__('Unread')+"</li>"+
+                               "<li onclick=\""+tog_marked_link+"\">&nbsp;&nbsp;"+__('Starred')+"</li>"+
+                               "<li class=\"insensitive\">"+__('Mark as read:')+"</li>"+
+                               "<li onclick=\""+catchup_sel_link+"\">&nbsp;&nbsp;"+__('Selection')+"</li>";
+
+                               tmp += "<li onclick=\""+catchup_feed_link+"\">&nbsp;&nbsp;"+__('Entire feed')+
+                                       "</li>";
+
+                               tmp += "</ul>";
+
                                tmp += "</div>";
        
                                tmp += "<div id=\"headlinesInnerContainer\" onscroll=\"headlines_scroll_handler()\">";
index f6eea6661ea35575aa69d71ad12cf3ebeeec03f5..e5bcbf595144930c492d01e429db70b3085e4bc1 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -142,6 +142,10 @@ function backend_sanity_check_callback(transport) {
                        }
                }
 
+               if (getURLParam("offline")) {
+                       return init_offline();
+               }
+
                var reply = transport.responseXML.firstChild.firstChild;
 
                if (!reply) {