Merge pull request #19061 from christianwach/lab-core-2217
[civicrm-core.git] / templates / CRM / common / TabSelected.tpl
CommitLineData
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>