Use AJAX for generation status
This commit is contained in:
parent
2f4feb3082
commit
7031ebc907
7 changed files with 76 additions and 47 deletions
|
|
@ -48,12 +48,17 @@ if (count($p) > 2)
|
|||
break;
|
||||
}
|
||||
}
|
||||
elseif (count($p) > 1) {
|
||||
header("Content-type: application/xml");
|
||||
|
||||
if (!empty($ret))
|
||||
{
|
||||
$template->assign("return", $ret);
|
||||
return "admin/generation";
|
||||
$queue = explode("\n", pipe_backend_scheduler("show"));
|
||||
unset($queue[0], $queue[1]);
|
||||
$template->assign("queue", array_filter($queue, function($var){ return !empty($var); }));
|
||||
|
||||
return "admin/generation_status";
|
||||
}
|
||||
|
||||
header("Location: /".SALT_ADMIN."/");
|
||||
exit();
|
||||
header("Content-type: application/xml");
|
||||
|
||||
$template->assign("return", $ret);
|
||||
return "admin/generation";
|
||||
|
|
|
|||
Reference in a new issue