Don't render close-container-control server-side

refs #8590
This commit is contained in:
Florian Strohmaier 2016-02-22 13:30:26 +01:00
parent d148c797b2
commit 2fac5bf6ae

View File

@ -25,7 +25,6 @@ class Tabs extends AbstractWidget implements Countable
{TABS} {TABS}
{DROPDOWN} {DROPDOWN}
{REFRESH} {REFRESH}
{CLOSE}
</ul> </ul>
EOT; EOT;
@ -364,20 +363,17 @@ EOT;
$tabs = $this->renderTabs(); $tabs = $this->renderTabs();
$drop = $this->renderDropdownTabs(); $drop = $this->renderDropdownTabs();
} }
$close = $this->closeTab ? $this->renderCloseTab() : '';
$refresh = $this->renderRefreshTab(); $refresh = $this->renderRefreshTab();
return str_replace( return str_replace(
array( array(
'{TABS}', '{TABS}',
'{DROPDOWN}', '{DROPDOWN}',
'{REFRESH}', '{REFRESH}'
'{CLOSE}'
), ),
array( array(
$tabs, $tabs,
$drop, $drop,
$close,
$refresh $refresh
), ),
$this->baseTpl $this->baseTpl
@ -419,12 +415,14 @@ EOT;
/** /**
* Whether to hide all elements except of the close button * Whether to hide all elements except of the close button
* *
* @deprecated Close-container control will always be rendered via JS
*
* @param bool $value * @param bool $value
* @return Tabs fluent interface *
* @return $this
*/ */
public function showOnlyCloseButton($value = true) public function showOnlyCloseButton($value = true)
{ {
$this->closeButtonOnly = $value;
return $this; return $this;
} }