From 1d69283a41dfa3183f23550fc881f6555642bd00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=B3na=20Lore?= Date: Tue, 31 Jan 2017 20:48:50 +0100 Subject: [PATCH] Change tab label with Ajax. --- e107_admin/cpage.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/e107_admin/cpage.php b/e107_admin/cpage.php index 0b209755a..2135faa3e 100644 --- a/e107_admin/cpage.php +++ b/e107_admin/cpage.php @@ -766,6 +766,7 @@ class page_admin_ui extends e_admin_ui $elid = 'core-page-create'; $model = $this->getModel(); $tabId = e107::getCustomFields()->getTabId(); + $tabLabel = e107::getCustomFields()->getTabLabel(); $data = array( 'tabs' => $this->getTabs(), @@ -788,6 +789,7 @@ class page_admin_ui extends e_admin_ui $commands[] = $ajax->commandInvoke('a[href="#tab' . $tabId . '"]', 'fadeInAdminTab'); } + $commands[] = $ajax->commandInvoke('a[href="#tab' . $tabId . '"]', 'html', array($tabLabel)); $commands[] = $ajax->commandInvoke('#tab' . $tabId, 'html', array($text)); $ajax->response($commands);