From 2a3d3d871ddc6f6ae5f86bcb76cc159031730742 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=B3na=20Lore?= Date: Fri, 20 Jan 2017 19:59:16 +0100 Subject: [PATCH] Use Ajax API to make response. --- e107_admin/cpage.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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; - - }