mirror of
https://github.com/e107inc/e107.git
synced 2025-04-21 21:21:54 +02:00
Use Ajax API to make response.
This commit is contained in:
parent
da16d2d52e
commit
2a3d3d871d
@ -806,16 +806,16 @@ class page_admin_ui extends e_admin_ui
|
||||
|
||||
if(empty($text))
|
||||
{
|
||||
echo "<div class='alert alert-info alert-block'>There are no additional fields for the selected chapter</div>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo $text;
|
||||
$text = "<div class='alert alert-info alert-block'>There are no additional fields for the selected chapter</div>";
|
||||
}
|
||||
|
||||
$ajax = e107::getAjax();
|
||||
|
||||
$commands = array();
|
||||
$commands[] = $ajax->commandInvoke('#tabadditional', 'html', array($text));
|
||||
|
||||
$ajax->response($commands);
|
||||
exit;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user