mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-11-18 13:52:42 +09:00
fixes for nzbget
This commit is contained in:
17
public/js/app.js
vendored
17
public/js/app.js
vendored
@@ -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);
|
||||
}
|
||||
});
|
||||
})();
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user