mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
"If" fehlte (FIX)
fix
This commit is contained in:
parent
e9f8309b50
commit
f53dfe7e87
@ -80,17 +80,20 @@ $(document).ready( function() {
|
|||||||
$('#dash_ports').html(window.serverConfig.flatbufServer.port+' | '+window.serverConfig.protoServer.port);
|
$('#dash_ports').html(window.serverConfig.flatbufServer.port+' | '+window.serverConfig.protoServer.port);
|
||||||
$('#dash_versionbranch').html(window.serverConfig.general.versionBranch);
|
$('#dash_versionbranch').html(window.serverConfig.general.versionBranch);
|
||||||
|
|
||||||
getReleases(function(){
|
getReleases(function(callback){
|
||||||
var cleanLatestVersion = window.latestVersion.tag_name.replace(/\./g, '');
|
if(callback)
|
||||||
var cleanCurrentVersion = window.currentVersion.replace(/\./g, '');
|
{
|
||||||
|
var cleanLatestVersion = window.latestVersion.tag_name.replace(/\./g, '');
|
||||||
|
var cleanCurrentVersion = window.currentVersion.replace(/\./g, '');
|
||||||
|
|
||||||
$('#dash_latev').html(window.currentVersion);
|
$('#dash_latev').html(window.currentVersion);
|
||||||
$('#dash_latev').html(window.latestVersion.tag_name + ' (' + (window.latestVersion.prerelease == true ? "Beta" : "Stable") + ')');
|
$('#dash_latev').html(window.latestVersion.tag_name + ' (' + (window.latestVersion.prerelease == true ? "Beta" : "Stable") + ')');
|
||||||
|
|
||||||
if ( cleanCurrentVersion < cleanLatestVersion )
|
if ( cleanCurrentVersion < cleanLatestVersion )
|
||||||
$('#versioninforesult').html('<div class="bs-callout bs-callout-warning" style="margin:0px">'+$.i18n('dashboard_infobox_message_updatewarning', window.latestVersion.tag_name) + ' (' + (window.latestVersion.prerelease == true ? "Beta" : "Stable") + ')</div>');
|
$('#versioninforesult').html('<div class="bs-callout bs-callout-warning" style="margin:0px">'+$.i18n('dashboard_infobox_message_updatewarning', window.latestVersion.tag_name) + ' (' + (window.latestVersion.prerelease == true ? "Beta" : "Stable") + ')</div>');
|
||||||
else
|
else
|
||||||
$('#versioninforesult').html('<div class="bs-callout bs-callout-success" style="margin:0px">'+$.i18n('dashboard_infobox_message_updatesuccess')+'</div>');
|
$('#versioninforesult').html('<div class="bs-callout bs-callout-success" style="margin:0px">'+$.i18n('dashboard_infobox_message_updatesuccess')+'</div>');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user