mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
Merge pull request #2360 from lonalore/master
Change tab label with Ajax.
This commit is contained in:
@@ -766,6 +766,7 @@ class page_admin_ui extends e_admin_ui
|
|||||||
$elid = 'core-page-create';
|
$elid = 'core-page-create';
|
||||||
$model = $this->getModel();
|
$model = $this->getModel();
|
||||||
$tabId = e107::getCustomFields()->getTabId();
|
$tabId = e107::getCustomFields()->getTabId();
|
||||||
|
$tabLabel = e107::getCustomFields()->getTabLabel();
|
||||||
|
|
||||||
$data = array(
|
$data = array(
|
||||||
'tabs' => $this->getTabs(),
|
'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 . '"]', 'fadeInAdminTab');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$commands[] = $ajax->commandInvoke('a[href="#tab' . $tabId . '"]', 'html', array($tabLabel));
|
||||||
$commands[] = $ajax->commandInvoke('#tab' . $tabId, 'html', array($text));
|
$commands[] = $ajax->commandInvoke('#tab' . $tabId, 'html', array($text));
|
||||||
|
|
||||||
$ajax->response($commands);
|
$ajax->response($commands);
|
||||||
|
Reference in New Issue
Block a user