mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-23 03:34:41 -04:00
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
This commit is contained in:
1 parent
2da4c13263
commit
fb65d7ee49
1 file changed
+2
-2
+2
-2
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user