mirror of
https://github.com/unraid/webgui.git
synced 2026-02-16 05:58:59 -06:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user