offline: add placeholder actions dropbox

This commit is contained in:
Andrew Dolgov 2009-02-13 12:35:35 +03:00
parent a8caa4c7d3
commit 67cf0d4aa7
2 changed files with 28 additions and 0 deletions

View File

@ -166,6 +166,30 @@ function viewfeed_offline(feed_id, subop, is_cat, subop_param, skip_history, off
tmp += "  "; tmp += "  ";
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>";
tmp += "<div id=\"headlinesInnerContainer\" onscroll=\"headlines_scroll_handler()\">"; tmp += "<div id=\"headlinesInnerContainer\" onscroll=\"headlines_scroll_handler()\">";

View File

@ -142,6 +142,10 @@ function backend_sanity_check_callback(transport) {
} }
} }
if (getURLParam("offline")) {
return init_offline();
}
var reply = transport.responseXML.firstChild.firstChild; var reply = transport.responseXML.firstChild.firstChild;
if (!reply) { if (!reply) {