diff --git a/e107_admin/cpage.php b/e107_admin/cpage.php index 634577f88..b1b32b84b 100644 --- a/e107_admin/cpage.php +++ b/e107_admin/cpage.php @@ -806,16 +806,16 @@ class page_admin_ui extends e_admin_ui if(empty($text)) { - echo "
There are no additional fields for the selected chapter
"; - } - else - { - echo $text; + $text = "
There are no additional fields for the selected chapter
"; } + $ajax = e107::getAjax(); + + $commands = array(); + $commands[] = $ajax->commandInvoke('#tabadditional', 'html', array($text)); + + $ajax->response($commands); exit; - - }