mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-25 18:59:04 +02:00
parent
d148c797b2
commit
2fac5bf6ae
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user