Changeset 6208 for extensions/GrumPluginClasses/templates/GPCTabSheet.tpl
- Timestamp:
- May 17, 2010, 7:46:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GrumPluginClasses/templates/GPCTabSheet.tpl
r6174 r6208 2 2 <ul {if isset($tabsheet_classes)}class="{$tabsheet_classes}"{/if} {if isset($tabsheet_id)}id="{$tabsheet_id}"{/if} > 3 3 {foreach from=$tabsheet key=name item=sheet name=tabs} 4 <li {if isset($tabsheet_id)}id="{$tabsheet_id}{$smarty.foreach.tabs.index}"{/if}class="{if ($name == $tabsheet_selected)}selected_tab{else}normal_tab{/if}">4 <li class="{if ($name == $tabsheet_selected)}selected_tab{else}normal_tab{/if}"> 5 5 <a {if $sheet.url!=''}href="{$sheet.url}"{/if} {if $sheet.onClick!=''}onclick="{$sheet.onClick}"{/if} ><span>{$sheet.caption}</span></a> 6 6 </li> … … 11 11 {literal} 12 12 <script type="text/javascript"> 13 $('#{/literal}{$tabsheet_id}{literal} li ').bind('click',13 $('#{/literal}{$tabsheet_id}{literal} li a').bind('click', 14 14 function () 15 15 { 16 16 $('#{/literal}{$tabsheet_id}{literal} li').removeClass('selected_tab').addClass('normal_tab'); 17 $(this ).removeClass('normal_tab').addClass('selected_tab');17 $(this.parentNode).removeClass('normal_tab').addClass('selected_tab'); 18 18 } 19 19 );
Note: See TracChangeset
for help on using the changeset viewer.