fixes for nzbget

This commit is contained in:
KodeStar
2018-02-08 18:53:52 +00:00
parent e4e815dc40
commit 4fc2bbd1af
13 changed files with 273 additions and 478 deletions

17
public/js/app.js vendored
View File

@@ -21,11 +21,18 @@ $.when( $.ready ).then(function() {
$('.livestats-container').each(function(index){
var id = $(this).data('id');
var container = $(this);
$.get('/get_stats/'+id, function(data) {
//alert(data);
container.html(data);
})
(function worker() {
$.ajax({
url: '/get_stats/'+id,
success: function(data) {
container.html(data);
},
complete: function() {
// Schedule the next request when the current one's complete
setTimeout(worker, 5000);
}
});
})();
});
}