mirror of
https://github.com/e107inc/e107.git
synced 2025-07-29 02:40:25 +02:00
Merge pull request #2305 from lonalore/e-modal
Use Ajax API to make response.
This commit is contained in:
@@ -806,16 +806,16 @@ class page_admin_ui extends e_admin_ui
|
|||||||
|
|
||||||
if(empty($text))
|
if(empty($text))
|
||||||
{
|
{
|
||||||
echo "<div class='alert alert-info alert-block'>There are no additional fields for the selected chapter</div>";
|
$text = "<div class='alert alert-info alert-block'>There are no additional fields for the selected chapter</div>";
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
echo $text;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$ajax = e107::getAjax();
|
||||||
|
|
||||||
|
$commands = array();
|
||||||
|
$commands[] = $ajax->commandInvoke('#tabadditional', 'html', array($text));
|
||||||
|
|
||||||
|
$ajax->response($commands);
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user