Ignore:
Timestamp:
May 17, 2010, 7:46:39 PM (15 years ago)
Author:
grum
Message:

Fix some bugs on the request builder and improve results display

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GrumPluginClasses/templates/GPCTabSheet.tpl

    r6174 r6208  
    22<ul {if isset($tabsheet_classes)}class="{$tabsheet_classes}"{/if} {if isset($tabsheet_id)}id="{$tabsheet_id}"{/if} >
    33{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}">
    55    <a {if $sheet.url!=''}href="{$sheet.url}"{/if} {if $sheet.onClick!=''}onclick="{$sheet.onClick}"{/if} ><span>{$sheet.caption}</span></a>
    66  </li>
     
    1111  {literal}
    1212  <script type="text/javascript">
    13     $('#{/literal}{$tabsheet_id}{literal} li').bind('click',
     13    $('#{/literal}{$tabsheet_id}{literal} li a').bind('click',
    1414      function ()
    1515      {
    1616        $('#{/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');
    1818      }
    1919    );
Note: See TracChangeset for help on using the changeset viewer.