diff --git a/webif/html/diag/queue/script.js b/webif/html/diag/queue/script.js index c23e165..3bb40cc 100644 --- a/webif/html/diag/queue/script.js +++ b/webif/html/diag/queue/script.js @@ -103,6 +103,8 @@ function load() $(function() { +var loader=0; + $('table') .tablesorter({ sortList: [[0,1]], @@ -198,7 +200,16 @@ $('#queuetab').on('click', 'a.file', function(e) { encodeURIComponent('{root}/' + dirname(file)); }); -setInterval(load, 60000); +function set_loader() { + if (loader != 0) + clearInterval(loader); + + loader=setInterval(load, 60000); +} + +$('#queuetab').on('change', 'input[type=checkbox]', set_loader); + +set_loader(); });