1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/UI/ServerStatus.js

20 lines
449 B
JavaScript
Raw Normal View History

window.ApiRoot = '/api';
var statusText = $.ajax({
2013-06-22 09:24:24 +03:00
type : 'GET',
url : window.ApiRoot + '/system/status',
2013-06-21 04:43:58 +03:00
async: false
}).responseText;
window.ServerStatus = JSON.parse(statusText);
2013-07-10 08:11:57 +03:00
var footerText = window.ServerStatus.version;
$(document).ready(function () {
if (window.ServerStatus.branch != 'master') {
footerText += '</br>' + window.ServerStatus.branch;
}
$('#footer-region .version').html(footerText);
});