]> git.wh0rd.org Git - tt-rss.git/commitdiff
prefs: properly save multiple feeds when cache_images param is not present
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 11 Nov 2011 10:08:33 +0000 (14:08 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 11 Nov 2011 10:08:33 +0000 (14:08 +0400)
prefs.js

index 7703124279d1b8b6c726fde59d2a3541f355a1d7..98564dfa79546ee03893ff7ba14f193b5668dd04 100644 (file)
--- a/prefs.js
+++ b/prefs.js
@@ -729,10 +729,12 @@ function editSelectedFeeds() {
                                                query = query + "&private=false";
                                        }
 
-                                       if (!query.match("&cache_images=") &&
-                                                       this.getChildByName('cache_images').attr('disabled') == false) {
-                                               query = query + "&cache_images=false";
-                                       }
+                                       try {
+                                               if (!query.match("&cache_images=") &&
+                                                               this.getChildByName('cache_images').attr('disabled') == false) {
+                                                       query = query + "&cache_images=false";
+                                               }
+                                       } catch (e) { }
 
                                        if (!query.match("&include_in_digest=") &&
                                                        this.getChildByName('include_in_digest').attr('disabled') == false) {