1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-02-06 11:50:56 +02:00
Sonarr/UI/ServerStatus.js

20 lines
449 B
JavaScript
Raw Normal View History

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