diff options
| author | 2014-07-13 22:42:33 +0200 | |
|---|---|---|
| committer | 2014-07-13 22:42:33 +0200 | |
| commit | fb65d7ee498977ba089ab7aad45322e47b7bb335 (patch) | |
| tree | 65127064cb6229ce8bbd75ed4637273d5a5092b1 /p/scripts | |
| parent | 2da4c13263affdd435ed71edaa111f05a57972a4 (diff) | |
Bug compatibility prefix title
https://github.com/marienfressinaud/FreshRSS/issues/536
The previous syntax worked only in Firefox
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/default_parameters
Diffstat (limited to 'p/scripts')
| -rw-r--r-- | p/scripts/main.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js index e1e6d49ce..4f7494cd1 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -55,7 +55,7 @@ function numberFormat(nStr) { return x1 + x2; } -function incLabel(p, inc, spaceAfter = false) { +function incLabel(p, inc, spaceAfter) { var i = str2int(p) + inc; return i > 0 ? ((spaceAfter ? '' : ' ') + '(' + numberFormat(i) + ')' + (spaceAfter ? ' ' : '')) @@ -193,7 +193,7 @@ function mark_favorite(active) { var favourites = $('.favorites>a').contents().last().get(0); if (favourites && favourites.textContent) { favourites.textContent = favourites.textContent.replace(/((?: \([ 0-9]+\))?\s*)$/, function (m, p1) { - return incLabel(p1, inc); + return incLabel(p1, inc, false); }); } |
