fix: improve showStatus function in HeadInlineJS.php

- Refactored the showStatus function for better readability and structure.
- Changed the way parameters are passed to the jQuery post method.
- This change continues the effort to enhance code clarity and maintainability across the plugin.
This commit is contained in:
Zack Spear
2025-05-22 12:31:52 -07:00
parent dba1c6a408
commit 39316cd5c2

View File

@@ -342,8 +342,17 @@ function openError(data) {
return false;
}
function showStatus(name,plugin,job) {
$.post('/webGui/include/ProcessStatus.php',{name:name,plugin:plugin,job:job},function(status){$(".tabs").append(status);});
function showStatus(name, plugin, job) {
$.post('/webGui/include/ProcessStatus.php',
{
name,
plugin,
job,
},
function(status) {
$('.title .right').eq(0).append(status);
}
);
}
function showFooter(data, id) {