Code tidy + set link to new version to open in new browser tab
This commit is contained in:
parent
b88263bd74
commit
4f6284032f
@ -86,10 +86,8 @@ $(function() {
|
|||||||
var latestVerPartInt = parseInt(latestVerParts[i],10);
|
var latestVerPartInt = parseInt(latestVerParts[i],10);
|
||||||
if(thisVerPartInt == latestVerPartInt) {
|
if(thisVerPartInt == latestVerPartInt) {
|
||||||
continue;
|
continue;
|
||||||
} else if (thisVerPartInt > latestVerPartInt) {
|
|
||||||
return false;
|
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return !(thisVerPartInt > latestVerPartInt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@ -125,6 +123,7 @@ $(function() {
|
|||||||
$('<a>')
|
$('<a>')
|
||||||
.addClass('notification-action')
|
.addClass('notification-action')
|
||||||
.attr("href", latestVersionUrl)
|
.attr("href", latestVersionUrl)
|
||||||
|
.attr("target", "_blank")
|
||||||
.text($.i18n._('core-index')["download"]+' ' + latestVersionName + ' '+$.i18n._('core-index')["now"]+'.')
|
.text($.i18n._('core-index')["download"]+' ' + latestVersionName + ' '+$.i18n._('core-index')["now"]+'.')
|
||||||
.appendTo(notification);
|
.appendTo(notification);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user