From cabac73b552a8bec4ca284dd40fb27872d6694c6 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Sat, 15 Feb 2014 14:03:17 +0100 Subject: Fix bug auto_actualize When auto_actualize was true and there was no feed to refresh, a message was always showed. Now we check size of array "feeds" and if size is zero, we don't perform auto_actualize action --- p/scripts/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'p/scripts') diff --git a/p/scripts/main.js b/p/scripts/main.js index 88ef670cd..44517eb6c 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -660,7 +660,7 @@ function init_actualize() { return false; }); - if (auto_actualize_feeds) { + if (auto_actualize_feeds && feed_count > 0) { $("#actualize").click(); } } -- cgit v1.2.3