Commit 559b4a20 authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

Le composant TabAjax ajoute les urls dans les attributs data-url des tab-panes

parent d9c5ba53
CHANGELOG
=========
3.1.21
------
- Le composant TabAjax ajoute les urls dans les attributs data-url des tab-panes
3.1.20
------
- Ajout du support de 2 fonctions SQL oracle/postgres : replace() et chr()
......
......@@ -293,9 +293,10 @@ class TabAjaxViewHelper extends AbstractHtmlElement
$id = $tab->getId() ?: 'tab' . $index;
$attrs = [
'role' => 'tabpanel',
'class' => ['tab-pane'],
'id' => $id,
'role' => 'tabpanel',
'class' => ['tab-pane'],
'data-url' => $tab->getUrl(),
'id' => $id,
];
if ($this->getSelected() === $tab) $attrs['class'][] = 'active';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment