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.
23 lines
571 B
23 lines
571 B
12 years ago
|
window.NzbDrone.ApiRoot = '/api';
|
||
12 years ago
|
|
||
12 years ago
|
var statusText = $.ajax({
|
||
12 years ago
|
type : 'GET',
|
||
12 years ago
|
url : window.NzbDrone.ApiRoot + '/system/status',
|
||
12 years ago
|
async: false,
|
||
|
headers: {
|
||
12 years ago
|
Authorization: window.NzbDrone.ApiKey
|
||
12 years ago
|
}
|
||
12 years ago
|
}).responseText;
|
||
|
|
||
12 years ago
|
window.NzbDrone.ServerStatus = JSON.parse(statusText);
|
||
12 years ago
|
|
||
12 years ago
|
var footerText = window.NzbDrone.ServerStatus.version;
|
||
12 years ago
|
|
||
|
$(document).ready(function () {
|
||
12 years ago
|
if (window.NzbDrone.ServerStatus.branch != 'master') {
|
||
|
footerText += '</br>' + window.NzbDrone.ServerStatus.branch;
|
||
12 years ago
|
}
|
||
|
$('#footer-region .version').html(footerText);
|
||
|
});
|
||
|
|