mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-11-18 13:52:42 +09:00
Added pinhole to enhanced list
This commit is contained in:
4
public/js/app.js
vendored
4
public/js/app.js
vendored
@@ -20,6 +20,8 @@ $.when( $.ready ).then(function() {
|
||||
if($('.livestats-container').length) {
|
||||
$('.livestats-container').each(function(index){
|
||||
var id = $(this).data('id');
|
||||
var dataonly = $(this).data('dataonly');
|
||||
var increaseby = (dataonly == 1) ? 20000 : 1000;
|
||||
var container = $(this);
|
||||
var max_timer = 30000;
|
||||
var timer = 5000;
|
||||
@@ -28,7 +30,7 @@ $.when( $.ready ).then(function() {
|
||||
url: '/get_stats/'+id,
|
||||
success: function(data) {
|
||||
container.html(data);
|
||||
if(data != '') timer = 1000;
|
||||
if(data != '') timer = increaseby;
|
||||
else {
|
||||
if(timer < max_timer) timer += 2000;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user