]> git.wh0rd.org Git - tt-rss.git/commitdiff
save active preferences tab
authorAndrew Dolgov <fox@bah.spb.su>
Sun, 11 Dec 2005 06:52:46 +0000 (07:52 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sun, 11 Dec 2005 06:52:46 +0000 (07:52 +0100)
prefs.js

index b0df20aa1631fe3cc59da663307499ff9a0553d5..b2c15a23bf4d8f7c6b9a9bcebe52c1ad6e20b819 100644 (file)
--- a/prefs.js
+++ b/prefs.js
@@ -1181,6 +1181,8 @@ function selectTab(id) {
 
        active_tab = id;
 
+       setCookie('ttrss_pref_acttab', active_tab);
+
 }
 
 function init() {
@@ -1194,8 +1196,10 @@ function init() {
                                "to function properly. Your browser doesn't seem to support it.";
                        return;
                }
-       
-               selectTab("genConfig");
+
+               active_tab = getCookie("ttrss_pref_acttab");
+               if (!active_tab) active_tab = "genConfig";
+               selectTab(active_tab);
        
                document.onkeydown = hotkey_handler;
                notify("");