]> git.wh0rd.org - tt-rss.git/commitdiff
set limitbox value from cookie on init
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 6 Sep 2005 04:39:31 +0000 (05:39 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 6 Sep 2005 04:39:31 +0000 (05:39 +0100)
tt-rss.js

index 6857be5b0ffbd98316e672ae19eddcd54f3b3824..033f144ff930682925c1b65a96081a5dd6211803 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -419,15 +419,15 @@ function init() {
 
        var content = document.getElementById("content");
 
-//     active_feed_id = getCookie("ttrss_vf_actfeed");
-
-       var limitbox = document.getElementById("limitbox");
-
        if (getCookie("ttrss_vf_vmode")) {
                var viewbox = document.getElementById("viewbox");
                viewbox.value = getCookie("ttrss_vf_vmode");
        }
 
+       if (getCookie("ttrss_vf_limit")) {
+               var limitbox = document.getElementById("limitbox");
+               limitbox.value = getCookie("ttrss_vf_limit");
+       }
 }