offline: add placeholder actions dropbox
This commit is contained in:
parent
a8caa4c7d3
commit
67cf0d4aa7
2 changed files with 28 additions and 0 deletions
24
offline.js
24
offline.js
|
@ -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...") + " <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+"\"> "+__('Unread')+"</li>"+
|
||||||
|
"<li onclick=\""+tog_marked_link+"\"> "+__('Starred')+"</li>"+
|
||||||
|
"<li class=\"insensitive\">"+__('Mark as read:')+"</li>"+
|
||||||
|
"<li onclick=\""+catchup_sel_link+"\"> "+__('Selection')+"</li>";
|
||||||
|
|
||||||
|
tmp += "<li onclick=\""+catchup_feed_link+"\"> "+__('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()\">";
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue