1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Merge pull request #2360 from lonalore/master

Change tab label with Ajax.
This commit is contained in:
Cameron
2017-02-01 10:54:54 -08:00
committed by GitHub

View File

@@ -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);