]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix feed saving bug when categories are disabled (closes #20)
authorAndrew Dolgov <fox@bah.spb.su>
Fri, 30 Dec 2005 02:44:53 +0000 (03:44 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Fri, 30 Dec 2005 02:44:53 +0000 (03:44 +0100)
prefs.js

index 82196d2a937a498b1c7c704fb260e7c9f90ebe3f..744a3b387f69d1726674b8c060aa25af19e2e1eb 100644 (file)
--- a/prefs.js
+++ b/prefs.js
@@ -676,7 +676,11 @@ function feedEditSave() {
                var purge_intl = document.getElementById("iedit_purgintl").value;
                var fcat = document.getElementById("iedit_fcat");
        
-               var fcat_id = fcat[fcat.selectedIndex].id;
+               var fcat_id = 0;
+       
+               if (fcat) {     
+                       fcat_id = fcat[fcat.selectedIndex].id;
+               }
 
                var pfeed = document.getElementById("iedit_parent_feed");
                var parent_feed_id = pfeed[pfeed.selectedIndex].id;