add disabled prototype dhtml popup headline subtoolbar

master
Andrew Dolgov 18 years ago
parent 8063bf38a6
commit c6008b620f

@ -2721,20 +2721,56 @@
# $r_offset = $offset + 1; # $r_offset = $offset + 1;
# $next_page_link = "[$r_offset] <a title=\"Next Page\" href=\"javascript:viewFeedGoPage(1)\">&gt;&gt;</a>"; # $next_page_link = "[$r_offset] <a title=\"Next Page\" href=\"javascript:viewFeedGoPage(1)\">&gt;&gt;</a>";
$catchup_page_link = "catchupPage()";
$catchup_feed_link = "catchupCurrentFeed()";
if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) { if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) {
$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)";
$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')";
$tog_unread_link = "javascript:selectionToggleUnread(true)";
$tog_marked_link = "javascript:selectionToggleMarked(true)";
}
/* print "<td class=\"headlineActions$rtl_cpart\">
<ul class=\"headlineDropdownMenu\">
<li class=\"top\">Select<ul>
<li><a href=\"$sel_all_link\">All</a></li>
<li><a href=\"$sel_unread_link\">Unread</a></li>
<li><a href=\"$sel_none_link\">None</a></li></ul></li>
<li class=\"top\">Toggle<ul>
<li><a href=\"$tog_unread_link\">Unread</a></li>
<li><a href=\"$tog_marked_link\">Starred</a></li></ul></li>
<li class=\"top\">Mark as read<ul>
<li><a href=\"#\" onclick=\"$catchup_page_link\">Page</a></li>
<li><a href=\"#\" onclick=\"$catchup_feed_link\">Feed</a></li></ul></li>
</ul>
</td>"; */
print "<td class=\"headlineActions$rtl_cpart\">". print "<td class=\"headlineActions$rtl_cpart\">".
_('Select:')." _('Select:')."
<a href=\"javascript:selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', true, '', true)\">All</a>, <a href=\"$sel_all_link\">All</a>,
<a href=\"javascript:selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', true, 'Unread', true)\">Unread</a>, <a href=\"$sel_unread_link\">Unread</a>,
<a href=\"javascript:selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', false)\">None</a> <a href=\"$sel_none_link\">None</a>
&nbsp;&nbsp;". &nbsp;&nbsp;".
_('Toggle:')." <a href=\"javascript:selectionToggleUnread()\">Unread</a>, _('Toggle:')." <a href=\"$tog_unread_link\">Unread</a>,
<a href=\"javascript:selectionToggleMarked()\">Starred</a> <a href=\"$tog_marked_link\">Starred</a>
&nbsp;&nbsp;". &nbsp;&nbsp;".
_('Mark as read:')." _('Mark as read:')."
<a href=\"#\" onclick=\"catchupPage()\">Page</a>, <a href=\"#\" onclick=\"$catchup_page_link\">Page</a>,
<a href=\"#\" onclick=\"catchupCurrentFeed()\">Feed</a>"; <a href=\"#\" onclick=\"$catchup_feed_link\">Feed</a>";
print "</td>"; print "</td>";
if ($search && $feed_id >= 0 && get_pref($link, 'ENABLE_LABELS') && GLOBAL_ENABLE_LABELS) { if ($search && $feed_id >= 0 && get_pref($link, 'ENABLE_LABELS') && GLOBAL_ENABLE_LABELS) {
@ -2744,25 +2780,6 @@
"._('Convert to Label')."</a></td>"; "._('Convert to Label')."</a></td>";
} }
} else {
print "<td class=\"headlineActions$rtl_cpart\">".
_('Select:')."
<a href=\"javascript:cdmSelectArticles('all')\">"._('All')."</a>,
<a href=\"javascript:cdmSelectArticles('unread')\">"._('Unread')."</a>,
<a href=\"javascript:cdmSelectArticles('none')\">"._('None')."</a>
&nbsp;&nbsp;".
_('Toggle:')." <a href=\"javascript:selectionToggleUnread(true)\">"._('Unread')."</a>,
<a href=\"javascript:selectionToggleMarked(true)\">"._('Starred')."</a>
&nbsp;&nbsp;".
_('Mark as read:').
"<a href=\"#\" onclick=\"catchupPage()\">"._('Page')."</a>,
<a href=\"#\" onclick=\"catchupCurrentFeed()\">"._('Feed')."</a>";
print "</td>";
}
print "<td class=\"headlineTitle$rtl_cpart\">"; print "<td class=\"headlineTitle$rtl_cpart\">";
if ($feed_site_url) { if ($feed_site_url) {

@ -1343,3 +1343,50 @@ a.feedUpdErrLink {
.catCtrNoUnread { .catCtrNoUnread {
display : none; display : none;
} }
ul.headlineDropdownMenu {
list-style-type : none;
margin : 0px;
padding : 0px;
}
ul.headlineDropdownMenu li.top {
float : left;
width : 130px;
background-image : url("images/down_arrow.png");
background-position : center right;
background-repeat : no-repeat;
margin-right : 10px;
cursor : pointer;
}
ul.headlineDropdownMenu li.top:hover {
color : black;
cursor : pointer;
}
ul.headlineDropdownMenu li.top:hover ul {
display : block;
}
ul.headlineDropdownMenu ul {
list-style-type : none;
position : absolute;
float : none;
margin : 0px;
padding : 0px;
display : none;
background-color : white;
border-width : 0px 1px 1px 1px;
border-color : #c0c0c0;
border-style : solid;
width : 130px;
z-index : 3;
top : auto;
left : auto;
}
ul.headlineDropdownMenu ul li {
float: none;
margin : 2px 2px 0px 2px;
}

Loading…
Cancel
Save