From 8f903f4ad5883ca92c2c4ffba53baca4f7fc7a9a Mon Sep 17 00:00:00 2001 From: Antonio de la Rosa Date: Fri, 11 Feb 2022 00:47:24 +0100 Subject: [PATCH] Fix in multiprogress --- templates/admin/dash_pastafari.phtml | 2 +- templates/admin/multiprogress.phtml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/admin/dash_pastafari.phtml b/templates/admin/dash_pastafari.phtml index fcfa94e..6219ed2 100644 --- a/templates/admin/dash_pastafari.phtml +++ b/templates/admin/dash_pastafari.phtml @@ -87,7 +87,7 @@ $(document).ready(function () { server_ids=[]; - $('.server_id').each( function () { + $('.server_id:checked').each( function () { server_ids.push($(this).val()); diff --git a/templates/admin/multiprogress.phtml b/templates/admin/multiprogress.phtml index f1c1bda..94ea357 100644 --- a/templates/admin/multiprogress.phtml +++ b/templates/admin/multiprogress.phtml @@ -86,6 +86,8 @@ function get_log() { task_completed++; + $('#num_completed').html(task_completed); + console.log('Task completed '+data[i].task_id); if(data[i].error==0) {