aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-10-02 10:05:26 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-10-09 15:53:18 +0200
commit5e2a01d61f69d1720cea98c6d54f09505a47e08e (patch)
tree7b793b9d0e2c42d71115d7d2b873721775a1d5cc
parentf97d4b3b6cca4a55636bbd50158f3c57666b0f08 (diff)
Fix a bug in main.js
In global view, there is no ".category.all>a" element so we tried to apply str2int on an undefined value. In consequence, we were not able to mark several articles as read This patch need to apply on 0.8.1 and 0.9.1 See https://github.com/marienfressinaud/FreshRSS/issues/649
-rw-r--r--p/scripts/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js
index f6d5d2907..9e39010bd 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -33,7 +33,7 @@ function needsScroll($elem) {
}
function str2int(str) {
- if (str == '') {
+ if (str == '' || str === undefined) {
return 0;
}
return parseInt(str.replace(/\D/g, ''), 10) || 0;