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