Merge pull request #22449 from mattwire/phpnotices
[civicrm-core.git] / templates / CRM / common / TabSelected.tpl
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}
7 {literal}
8 CRM.$(function($) {
9 var tabIndex = $('#tab_' + selectedTab).prevAll().length;
10 $(tabContainer).tabs( {active: tabIndex} );
11 });
12 {/literal}
13 </script>