Get server name as a scheduled task

This commit is contained in:
Jonathan Wong 2015-11-16 18:31:22 -08:00
parent 7c8fb58600
commit 12056ac2ba
5 changed files with 15 additions and 21 deletions

View file

@ -33,7 +33,7 @@
<div class="row">
<div class="col-md-12">
<div class="padded-header" id="library-statistics-header">
<h3>Library Statistics</h3>
<h3>Library Statistics <small>${config['pms_name']}</small></h3>
</div>
<div id="library-stats" class="library-platforms">
<div class='text-muted'><i class="fa fa-refresh fa-spin"></i> Loading stats...</div>
@ -98,19 +98,6 @@
});
}
function getLibraryStatsHeader() {
$.ajax({
url: 'get_server_friendly_name',
cache: false,
async: true,
data: { },
complete: function (xhr, status) {
server_name = xhr.responseText;
$('#library-statistics-header h3').append(' <small>' + server_name + '</small>')
}
});
}
function getLibraryStats() {
$.ajax({
url: 'library_stats',
@ -162,7 +149,6 @@
});
getHomeStats();
getLibraryStatsHeader();
getLibraryStats();