summaryrefslogtreecommitdiff
path: root/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-12-11 07:52:46 +0100
committerAndrew Dolgov <[email protected]>2005-12-11 07:52:46 +0100
commit4da47970fb9aacca2bbfc2557d999d19be1c3102 (patch)
tree8e291bde24c21571313e59ba815db417573b5cf4 /prefs.js
parente31dca14069a166a093a1b42e8dac1075d94d768 (diff)
save active preferences tab
Diffstat (limited to 'prefs.js')
-rw-r--r--prefs.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/prefs.js b/prefs.js
index b0df20aa1..b2c15a23b 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("");