From c6008b620f86217b7c5288c85aad624d41af9f8c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 22 Jan 2007 07:09:41 +0100 Subject: add disabled prototype dhtml popup headline subtoolbar --- functions.php | 87 +++++++++++++++++++++++++++++++++++------------------------ tt-rss.css | 47 ++++++++++++++++++++++++++++++++ 2 files changed, 99 insertions(+), 35 deletions(-) diff --git a/functions.php b/functions.php index d4d6ba5fd..7a19a79a7 100644 --- a/functions.php +++ b/functions.php @@ -2721,46 +2721,63 @@ # $r_offset = $offset + 1; # $next_page_link = "[$r_offset] >>"; + $catchup_page_link = "catchupPage()"; + $catchup_feed_link = "catchupCurrentFeed()"; + if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) { - print "". - _('Select:')." - All, - Unread, - None -   ". - _('Toggle:')." Unread, - Starred -   ". - _('Mark as read:')." - Page, - Feed"; - print ""; - - if ($search && $feed_id >= 0 && get_pref($link, 'ENABLE_LABELS') && GLOBAL_ENABLE_LABELS) { - print " - - "._('Convert to Label').""; - } + $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)"; - } else { + $tog_unread_link = "javascript:selectionToggleUnread()"; + $tog_marked_link = "javascript:selectionToggleMarked()"; - print "". - _('Select:')." - "._('All').", - "._('Unread').", - "._('None')." -   ". - _('Toggle:')." "._('Unread').", - "._('Starred')." -   ". - _('Mark as read:'). - ""._('Page').", - "._('Feed').""; - - print ""; + } 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 " + + "; */ + + print "". + _('Select:')." + All, + Unread, + None +   ". + _('Toggle:')." Unread, + Starred +   ". + _('Mark as read:')." + Page, + Feed"; + print ""; + + if ($search && $feed_id >= 0 && get_pref($link, 'ENABLE_LABELS') && GLOBAL_ENABLE_LABELS) { + print " + + "._('Convert to Label').""; } print ""; diff --git a/tt-rss.css b/tt-rss.css index 3f40fb619..c005ed83e 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -1343,3 +1343,50 @@ a.feedUpdErrLink { .catCtrNoUnread { 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; +} -- cgit v1.2.3