]> git.wh0rd.org - tt-rss.git/commitdiff
compat theme: properly reflow container height
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 12 May 2008 08:26:29 +0000 (09:26 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 12 May 2008 08:26:29 +0000 (09:26 +0100)
functions.js
functions.php
themes/compat/theme.css
tt-rss.js

index 088b986ee31f0165cc417be3feef7029b9a0abe2..5bb559a72992ff9af71f63e9f51d62140a2efd05 100644 (file)
@@ -261,6 +261,14 @@ function hotkey_handler(e) {
                        if (new_feed) viewfeed(new_feed, '');
                }
 
+               if (shift_key && (keycode == 78 || keycode == 40)) { // shift - n, down
+                       return catchupRelativeToArticle(1);
+               }
+
+               if (shift_key && (keycode == 80 || keycode == 38)) { // shift - p, up
+                       return catchupRelativeToArticle(0);                     
+               }
+
                if (keycode == 78 || keycode == 40) { // n, down
                        if (typeof moveToPost != 'undefined') {
                                return moveToPost('next');
index cb07c987e4189c3e191e7f5638839c8bf47aa965..1b92f94409ef62065c8d5e2c361f35a4b6437457 100644 (file)
                                                        <li><span class=\"insensitive\">".__('Mark as read:')."</span></li>
                                                        <li onclick=\"$catchup_sel_link\">&nbsp;&nbsp;".__('Selection')."</li>";
 
-
 /*                             if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) {
        
                                        print "
                                }
                                
                                print   "</ul></li></ul>";
-
-/*                                     print "<td class=\"headlineActions$rtl_cpart\">
-                                               <ul class=\"headlineDropdownMenu\">
-                                               <li class=\"top2\">
-                                               ".__('Select:')."
-                                                       <a href=\"$sel_all_link\">".__('All')."</a>,
-                                                       <a href=\"$sel_unread_link\">".__('Unread')."</a>,
-                                                       <a href=\"$sel_none_link\">".__('None')."</a></li>
-                                               <li class=\"vsep\">&nbsp;</li>
-                                               <li class=\"top\">".__('Toggle')."<ul>
-                                                       <li onclick=\"$tog_unread_link\">".__('Unread')."</li>
-                                                       <li onclick=\"$tog_marked_link\">".__('Starred')."</li>
-                                                       <li onclick=\"$tog_published_link\">".__('Published')."</li>
-                                                       </ul></li>
-                                               <li class=\"vsep\">&nbsp;</li>
-                                               <li class=\"top\">".__('Mark as read')."<ul>
-                                                       <li onclick=\"$catchup_sel_link\">".__('Selection')."</li>
-                                                       <!-- <li onclick=\"$catchup_page_link\">".__('This page')."</li> -->";
-       
-                                       if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) {
-       
-                                       print "
-                                                       <li><span class=\"insensitive\">--------</span></li>
-                                                       <li onclick=\"catchupRelativeToArticle(0)\">".__("Above active article")."</li>
-                                                       <li onclick=\"catchupRelativeToArticle(1)\">".__("Below active article")."</li>
-                                                       <li><span class=\"insensitive\">--------</span></li>";
-                                       }
-       
-                                       print "
-                                                       <li onclick=\"$catchup_feed_link\">".__('Entire feed')."</li></ul></li>
-                                               ";
-       
-                                               $enable_pagination = get_pref($link, "_PREFS_ENABLE_PAGINATION");
-       
-                                               if ($limit != 0 && !$search && $enable_pagination) {
-                                                       print "
-                                                       <li class=\"vsep\">&nbsp;</li>
-                                                       <li class=\"top\"><a href=\"$page_next_link\">".__('Next page')."</a><ul>
-                                                               <li onclick=\"$page_prev_link\">".__('Previous page')."</li>
-                                                               <li onclick=\"$page_first_link\">".__('First page')."</li></ul></li>
-                                                               </ul>";
-                                                       }
-       
-                                               if ($search && $feed_id >= 0 && get_pref($link, 'ENABLE_LABELS') && GLOBAL_ENABLE_LABELS) {
-                                                       print "
-                                                               <li class=\"vsep\">&nbsp;</li>
-                                                               <li class=\"top3\">
-                                                               <a href=\"javascript:labelFromSearch('$search', '$search_mode',
-                                                                       '$match_on', '$feed_id', '$is_cat');\">
-                                                                       ".__('Convert to label')."</a></td>";
-                                               } */
-
-                                               print "</td>"; 
+                               print "</td>"; 
        
                                } else {
-                               // old style subtoolbar:
+                                       // old style subtoolbar:
        
                                        print "<td class=\"headlineActions$rtl_cpart\">".
                                                __('Select:')."
                                }
                        } else { // dashboard menu actions
 
-                                       print "<td class=\"headlineActions$rtl_cpart\">
-                                               <ul class=\"headlineDropdownMenu\">
-                                               <li class=\"top2\">
-                                                       <a href=\"#\" onclick=\"return displayDlg('quickAddFeed');\">".
-                                                               __('Subscribe to feed')."</a>
-                                               </li>
-                                               <li class=\"vsep\">&nbsp;</li>
-                                               <li class=\"top\">".__('Placeholder')."<ul>
-                                                       <li onclick=\"\">".__('Placeholder')."</li>
-                                                       <li onclick=\"\">".__('Placeholder')."</li>
-                                                       <li onclick=\"\">".__('Placeholder')."</li>
-                                                       </ul></li>
-                                               <li class=\"vsep\">&nbsp;</li>
-                                               <li class=\"top\">".__('Show')."<ul>
-                                                       <li onclick=\"\">".__('Update errors')."</li>
-                                                       </ul></li></ul>";
-
-                                       print "</td>";
-
+                               // not implemented
+                               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 "<span id=\"subtoolbar_search\" 
index fcda0b431151a92c9bdb7a8e9462c0fde4dfed91..971ab5db92fb1a08ab0b198454d7385a236128f8 100644 (file)
@@ -324,6 +324,11 @@ table.prefFeedList td.feedEditCat {
        border-color : #c0c0c0;
 }
 
+table.prefFilterList td.filterEditCat {
+       font-size : large;
+       border-color : #c0c0c0;
+}
+
 table.prefFeedList td.feedIcon {
        text-align : center;
 }
@@ -894,7 +899,7 @@ div.headlines_cdm {
 #footer {
        position : absolute;
        bottom : 0px;
-       height : 30px;
+       height : 20px;
        text-align : center;
        color : gray;
        font-size : x-small;
index 11ce57b73492ab3a60ab9d468c9e8b2f2cedf36d..0e4c153c0cf295b7fb2278136b92eab5526da6b4 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -359,9 +359,14 @@ function resize_headlines() {
        var h_frame = document.getElementById("headlines-frame");
        var c_frame = document.getElementById("content-frame");
        var f_frame = document.getElementById("footer");
+       var feeds_frame = document.getElementById("feeds-holder");
 
        if (!c_frame || !h_frame) return;
 
+       if (feeds_frame && getInitParam("theme") == "compat") {
+                       feeds_frame.style.bottom = f_frame.offsetHeight + "px";         
+       }
+
        if (getInitParam("theme") == "3pane") {
                debug("resize_headlines: HOR-mode");