From: Andrew Dolgov Date: Sun, 11 Dec 2005 06:52:46 +0000 (+0100) Subject: save active preferences tab X-Git-Tag: schema_freeze_for_1.1.1~66 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=4da47970fb9aacca2bbfc2557d999d19be1c3102;p=tt-rss.git save active preferences tab --- diff --git a/prefs.js b/prefs.js index b0df20aa..b2c15a23 100644 --- 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("");