add disabled prototype dhtml popup headline subtoolbar

This commit is contained in:
Andrew Dolgov 2007-01-22 07:09:41 +01:00
parent 8063bf38a6
commit c6008b620f
2 changed files with 97 additions and 33 deletions

View File

@ -2721,46 +2721,63 @@
# $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')) {
print "<td class=\"headlineActions$rtl_cpart\">". $sel_all_link = "javascript:selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', true, '', true)";
_('Select:')." $sel_unread_link = "javascript:selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', true, 'Unread', true)";
<a href=\"javascript:selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', true, '', true)\">All</a>, $sel_none_link = "javascript:selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', false)";
<a href=\"javascript:selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', true, 'Unread', true)\">Unread</a>,
<a href=\"javascript:selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', false)\">None</a>
&nbsp;&nbsp;".
_('Toggle:')." <a href=\"javascript:selectionToggleUnread()\">Unread</a>,
<a href=\"javascript:selectionToggleMarked()\">Starred</a>
&nbsp;&nbsp;".
_('Mark as read:')."
<a href=\"#\" onclick=\"catchupPage()\">Page</a>,
<a href=\"#\" onclick=\"catchupCurrentFeed()\">Feed</a>";
print "</td>";
if ($search && $feed_id >= 0 && get_pref($link, 'ENABLE_LABELS') && GLOBAL_ENABLE_LABELS) { $tog_unread_link = "javascript:selectionToggleUnread()";
print "<td class=\"headlineActions$rtl_cpart\"> $tog_marked_link = "javascript:selectionToggleMarked()";
<a href=\"javascript:labelFromSearch('$search', '$search_mode',
'$match_on', '$feed_id', '$is_cat');\">
"._('Convert to Label')."</a></td>";
}
} else { } else {
print "<td class=\"headlineActions$rtl_cpart\">". $sel_all_link = "javascript:cdmSelectArticles('all')";
_('Select:')." $sel_unread_link = "javascript:cdmSelectArticles('unread')";
<a href=\"javascript:cdmSelectArticles('all')\">"._('All')."</a>, $sel_none_link = "javascript:cdmSelectArticles('none')";
<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>";
$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\">".
_('Select:')."
<a href=\"$sel_all_link\">All</a>,
<a href=\"$sel_unread_link\">Unread</a>,
<a href=\"$sel_none_link\">None</a>
&nbsp;&nbsp;".
_('Toggle:')." <a href=\"$tog_unread_link\">Unread</a>,
<a href=\"$tog_marked_link\">Starred</a>
&nbsp;&nbsp;".
_('Mark as read:')."
<a href=\"#\" onclick=\"$catchup_page_link\">Page</a>,
<a href=\"#\" onclick=\"$catchup_feed_link\">Feed</a>";
print "</td>";
if ($search && $feed_id >= 0 && get_pref($link, 'ENABLE_LABELS') && GLOBAL_ENABLE_LABELS) {
print "<td class=\"headlineActions$rtl_cpart\">
<a href=\"javascript:labelFromSearch('$search', '$search_mode',
'$match_on', '$feed_id', '$is_cat');\">
"._('Convert to Label')."</a></td>";
} }
print "<td class=\"headlineTitle$rtl_cpart\">"; print "<td class=\"headlineTitle$rtl_cpart\">";

View File

@ -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;
}