Last change
on this file since 24278 was
7142,
checked in by grum, 14 years ago
|
fix js&css bugs with IE8 + improve GPCTabsSheet templates
|
File size:
1.1 KB
|
Line | |
---|
1 | {if isset($tabsheet) and count($tabsheet)} |
---|
2 | <ul {if isset($tabsheet_classes)}class="{$tabsheet_classes}"{/if} {if isset($tabsheet_id)}id="{$tabsheet_id}"{/if} > |
---|
3 | {foreach from=$tabsheet key=name item=sheet name=tabs} |
---|
4 | <li {if isset($tabsheet_id)}id="{$tabsheet_id}{$name}"{/if} class="{$tab_classes.normal} {if ($name == $tabsheet_selected)}{$tab_classes.selected}{else}{$tab_classes.unselected}{/if}"> |
---|
5 | <a {if $sheet.url!=''}href="{$sheet.url}"{/if} {if $sheet.onClick!=''}onclick="{$sheet.onClick}"{/if} ><span>{$sheet.caption}</span></a> |
---|
6 | </li> |
---|
7 | {/foreach} |
---|
8 | </ul> |
---|
9 | |
---|
10 | {if isset($tabsheet_id)} |
---|
11 | {literal} |
---|
12 | <script type="text/javascript"> |
---|
13 | $('#{/literal}{$tabsheet_id}{literal} li a').bind('click', |
---|
14 | function () |
---|
15 | { |
---|
16 | $('#{/literal}{$tabsheet_id}{literal} li').removeClass('{/literal}{$tab_classes.selected}{literal}').addClass('{/literal}{$tab_classes.unselected}{literal}'); |
---|
17 | $(this.parentNode).removeClass('{/literal}{$tab_classes.unselected}{literal}').addClass('{/literal}{$tab_classes.selected}{literal}'); |
---|
18 | } |
---|
19 | ); |
---|
20 | {/literal} |
---|
21 | </script> |
---|
22 | |
---|
23 | {/if} |
---|
24 | |
---|
25 | {/if} |
---|
Note: See
TracBrowser
for help on using the repository browser.