Code tidy + set link to new version to open in new browser tab

This commit is contained in:
Owen Stephens 2017-09-27 12:22:59 +01:00
parent b88263bd74
commit 4f6284032f

View File

@ -86,10 +86,8 @@ $(function() {
var latestVerPartInt = parseInt(latestVerParts[i],10);
if(thisVerPartInt == latestVerPartInt) {
continue;
} else if (thisVerPartInt > latestVerPartInt) {
return false;
} else {
return true;
return !(thisVerPartInt > latestVerPartInt);
}
}
return false;
@ -125,6 +123,7 @@ $(function() {
$('<a>')
.addClass('notification-action')
.attr("href", latestVersionUrl)
.attr("target", "_blank")
.text($.i18n._('core-index')["download"]+' ' + latestVersionName + ' '+$.i18n._('core-index')["now"]+'.')
.appendTo(notification);
}