Last change
on this file since 12201 was
7142,
checked in by grum, 14 years ago
|
fix js&css bugs with IE8 + improve GPCTabsSheet templates
|
File size:
1.1 KB
|
Rev | Line | |
---|
[5918] | 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} > |
---|
[6174] | 3 | {foreach from=$tabsheet key=name item=sheet name=tabs} |
---|
[7142] | 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}"> |
---|
[6174] | 5 | <a {if $sheet.url!=''}href="{$sheet.url}"{/if} {if $sheet.onClick!=''}onclick="{$sheet.onClick}"{/if} ><span>{$sheet.caption}</span></a> |
---|
[5918] | 6 | </li> |
---|
| 7 | {/foreach} |
---|
| 8 | </ul> |
---|
[6174] | 9 | |
---|
| 10 | {if isset($tabsheet_id)} |
---|
| 11 | {literal} |
---|
| 12 | <script type="text/javascript"> |
---|
[6208] | 13 | $('#{/literal}{$tabsheet_id}{literal} li a').bind('click', |
---|
[6174] | 14 | function () |
---|
| 15 | { |
---|
[6702] | 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}'); |
---|
[6174] | 18 | } |
---|
| 19 | ); |
---|
| 20 | {/literal} |
---|
| 21 | </script> |
---|
| 22 | |
---|
| 23 | {/if} |
---|
| 24 | |
---|
[5918] | 25 | {/if} |
---|
Note: See
TracBrowser
for help on using the repository browser.