diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 33f6e85ca6..b210bbfa50 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -2873,10 +2873,12 @@ function ui_progress( $text = $progress.'%'; } + $id = uniqid(); + ui_require_css_file('progress'); - $output .= ''; - $output .= ''; + $output .= ''; $output .= ''; if ($ajax !== false && is_array($ajax)) { @@ -2900,8 +2902,8 @@ function ui_progress( success: function(data) { try { val = JSON.parse(data); - $(".progress_main").attr("data-label", val + " %"); - $(".progress").width(val+"%"); + $("#'.$id.'").attr("data-label", val + " %"); + $("#'.$id.'_progress").width(val+"%"); } catch (e) { console.error(e); } @@ -2914,8 +2916,8 @@ function ui_progress( $output .= '