מדיה ויקי:Gadget-WLM.js: הבדלים בין גרסאות בדף
אין תקציר עריכה |
אין תקציר עריכה |
||
| שורה 544: | שורה 544: | ||
.addClass('blueedit')); | .addClass('blueedit')); | ||
newmap = {}; | newmap = {}; | ||
var notif = 0 | var notif = 0; | ||
Object.keys(ans) | Object.keys(ans) | ||
.map(function(key) { | .map(function(key) { | ||
| שורה 558: | שורה 558: | ||
notify: curnotif | notify: curnotif | ||
}; | }; | ||
if (notif === 0) | if (notif === 0 && curnotif !== '') | ||
notif = curnotif; | notif = curnotif; | ||
else if (notif > curnotif) | else if (notif !== '' and curnotif !== '' && notif > curnotif) | ||
notif = curnotif; | notif = curnotif; | ||
} | } | ||
}); | }); | ||
whatsnewrec(newmap, Object.keys(newmap), | whatsnewrec(newmap, Object.keys(newmap), notif); | ||
}); | }); | ||
} | } | ||