Commit | Line | Data |
---|---|---|
6a6458b6 | 1 | {* DEPRECATED script, should be refactored out and removed *} |
c1bd8375 MWMC |
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} | |
7 | {literal} | |
8 | CRM.$(function($) { | |
9 | var tabIndex = $('#tab_' + selectedTab).prevAll().length; | |
10 | $(tabContainer).tabs( {active: tabIndex} ); | |
11 | }); | |
12 | {/literal} | |
13 | </script> |