]> git.wh0rd.org Git - tt-rss.git/commitdiff
prefs: properly recover from attempt to set nonexistant tab on init
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 24 Jan 2009 05:26:00 +0000 (06:26 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 24 Jan 2009 05:26:00 +0000 (06:26 +0100)
prefs.js

index 8fdaeb94037d0579c69cef8636e4e645d709ba3f..3827ec9cd8beb7cd354287ed0682c26154325888 100644 (file)
--- a/prefs.js
+++ b/prefs.js
@@ -1333,6 +1333,7 @@ function init_second_stage() {
 
        try {
                active_tab = getInitParam("prefs_active_tab");
+               if (!document.getElementById(active_tab+"Tab")) active_tab = "genConfig";
                if (!active_tab || active_tab == '0') active_tab = "genConfig";
 
                document.onkeydown = pref_hotkey_handler;