You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
448 B
20 lines
448 B
window.ApiRoot = '/api';
|
|
|
|
var statusText = $.ajax({
|
|
type : 'GET',
|
|
url : window.ApiRoot + '/system/status',
|
|
async: false
|
|
}).responseText;
|
|
|
|
window.ServerStatus = JSON.parse(statusText);
|
|
|
|
var footerText = window.ServerStatus.version;
|
|
|
|
$(document).ready(function () {
|
|
if (window.ServerStatus.branch != 'master') {
|
|
footerText = '</br>' + window.ServerStatus.branch;
|
|
}
|
|
$('#footer-region .version').html(footerText);
|
|
});
|
|
|