1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-17 15:02:34 +02:00
Radarr/UI/ServerStatus.js

20 lines
449 B
JavaScript
Raw Normal View History

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