1 {* DEPRECATED script, should be refactored out and removed *}
2 <script type='text/javascript'>
3 var selectedTab = '{$defaultTab}';
4 var tabContainer = '#mainTabContainer';
5 {if $tabContainer}tabContainer = '{$tabContainer}';{/if}
6 {if $selectedChild}selectedTab = '{$selectedChild}';{/if}
9 var tabIndex = $('#tab_' + selectedTab).prevAll().length;
10 $(tabContainer).tabs( {active: tabIndex} );