save active preferences tab

This commit is contained in:
Andrew Dolgov 2005-12-11 07:52:46 +01:00
parent e31dca1406
commit 4da47970fb

View File

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