mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-08 18:51:12 +02:00
The existence of .ss-tabset triggers JS which applies $.tabs(), and in turn interprets the first available link as the tab navigation. jQuery UI subsequently tries to ajax-load this link, which is not desired. Instead, $.tabs() should *only* be applied to a container DOM element with .cms-tabset applied.
20 lines
400 B
Scheme
20 lines
400 B
Scheme
<div $getAttributesHTML("class") class="ss-tabset $extraClass">
|
|
<ul>
|
|
<% loop Tabs %>
|
|
<li class="$FirstLast $MiddleString $extraClass"><a href="#$id" id="tab-$id">$Title</a></li>
|
|
<% end_loop %>
|
|
</ul>
|
|
|
|
<% loop Tabs %>
|
|
<% if Tabs %>
|
|
$FieldHolder
|
|
<% else %>
|
|
<div $AttributesHTML>
|
|
<% loop Fields %>
|
|
$FieldHolder
|
|
<% end_loop %>
|
|
</div>
|
|
<% end_if %>
|
|
<% end_loop %>
|
|
</div>
|