mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
Moved source code under src folder - massive change
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
window.NzbDrone.ApiRoot = '/api';
|
||||
|
||||
var statusText = $.ajax({
|
||||
type : 'GET',
|
||||
url : window.NzbDrone.ApiRoot + '/system/status',
|
||||
async: false,
|
||||
headers: {
|
||||
Authorization: window.NzbDrone.ApiKey
|
||||
}
|
||||
}).responseText;
|
||||
|
||||
window.NzbDrone.ServerStatus = JSON.parse(statusText);
|
||||
|
||||
var footerText = window.NzbDrone.ServerStatus.version;
|
||||
|
||||
$(document).ready(function () {
|
||||
if (window.NzbDrone.ServerStatus.branch != 'master') {
|
||||
footerText += '</br>' + window.NzbDrone.ServerStatus.branch;
|
||||
}
|
||||
$('#footer-region .version').html(footerText);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user