Skip to content

Commit c9c9e7e

Browse files
Fixed problem with initial load of tab
1 parent cd85783 commit c9c9e7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/MyCLabs/MUIH/Tabs.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ public function getHTML()
234234
public function getScript()
235235
{
236236
if (($this->activatedTab !== null) && ($this->activatedTab->isAjax())) {
237-
return '$("#' . $this->activatedTab->getAttribute('id') . '").trigger("loadTab.muih");';
237+
return '$("#' . $this->activatedTab->getAttribute('id') . '")' .
238+
'.trigger("loadTab.muih", ["' . implode('', $this->activatedTab->getContent()) . '"]);';
238239
}
239240

240241
return '';

0 commit comments

Comments
 (0)