diff options
| author | 2014-10-02 10:05:26 +0200 | |
|---|---|---|
| committer | 2014-10-02 10:05:26 +0200 | |
| commit | 9b2ad32e98e4720d5ee422fccd3069f086ee8563 (patch) | |
| tree | a2b6c65922c472ee211230bc4dd59491f4655913 /p | |
| parent | f1a5a174ea8731cbfbe8d9d692976765030b5f80 (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
Diffstat (limited to 'p')
| -rw-r--r-- | p/scripts/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js index 7cd53c745..c9e8dd299 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; |
