Commit | Line | Data |
---|---|---|
1 | <script type='text/javascript'> | |
2 | var selectedTab = '{$defaultTab}'; | |
3 | var tabContainer = '#mainTabContainer'; | |
4 | {if $tabContainer}tabContainer = '{$tabContainer}';{/if} | |
5 | {if $selectedChild}selectedTab = '{$selectedChild}';{/if} | |
6 | {literal} | |
7 | CRM.$(function($) { | |
8 | var tabIndex = $('#tab_' + selectedTab).prevAll().length; | |
9 | $(tabContainer).tabs( {active: tabIndex} ); | |
10 | }); | |
11 | {/literal} | |
12 | </script> |