]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix headlineToolbar initialization on load
authorAndrew Dolgov <fox@bah.spb.su>
Tue, 20 Dec 2005 12:11:15 +0000 (13:11 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Tue, 20 Dec 2005 12:11:15 +0000 (13:11 +0100)
tt-rss.js

index 10aa2d2b78a4b7cca9c6a03687adf69ef3c09ec7..bfe3c67c03b867706f1d4acfa4ad16ed29c459d7 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -364,28 +364,11 @@ function init_second_stage() {
                updateFeedList(false, false);
                document.onkeydown = hotkey_handler;
        
-               var content = document.getElementById("content");
+               var viewbox = document.getElementById("viewbox");                       
+               var limitbox = document.getElementById("limitbox");
 
                dropboxSelect(viewbox, getCookie("ttrss_vf_vmode"));
-       
-/*             if (getCookie("ttrss_vf_vmode")) {
-                       var viewbox = document.getElementById("viewbox");                       
-                       if (getCookie("ttrss_vf_vmode")) {
-                               viewbox.value = getCookie("ttrss_vf_vmode");
-                       }
-               }
-       
-               if (getCookie("ttrss_vf_limit")) {
-                       var limitbox = document.getElementById("limitbox");
-                       limitbox.value = getCookie("ttrss_vf_limit");
-               } */
-       
-       //      if (getCookie("ttrss_vf_actfeed")) {
-       //              viewfeed(getCookie("ttrss_vf_actfeed"), 0, '');
-       //      }
-       
-       //      setTimeout("timeout()", 2*1000);
-       //      scheduleFeedUpdate(true);
+               dropboxSelect(limitbox, getCookie("ttrss_vf_limit"));
        
        } catch (e) {
                exception_error("init_second_stage", e);