Dotclear


Ignore:
Timestamp:
09/08/13 17:27:07 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Bugfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/js/jquery/jquery.pageTabs.js

    r1737 r1758  
    7878          var i = 0; 
    7979          var to_trigger = null; 
     80          var exists = false; 
    8081 
    8182          this.divs.each(function() { 
    8283               if ((this.id != '' && this.id == index) || i == index) { 
    83                     jQuery(this).show(0); 
    84                     This.items[i].className = This.params.listClassName+'-active'; 
    85                     to_trigger = i; 
    86                } else { 
    87                     jQuery(this).hide(0); 
    88                     This.items[i].className = ''; 
     84                    exists = true; 
    8985               } 
    90  
    9186               i++; 
    9287          }); 
     88           
     89          i = 0; 
     90           
     91          if( exists ) { 
     92               this.divs.each(function() { 
     93                    if ((this.id != '' && this.id == index) || i == index) { 
     94                         jQuery(this).show(0); 
     95                         This.items[i].className = This.params.listClassName+'-active'; 
     96                         to_trigger = i; 
     97                    } else { 
     98                         jQuery(this).hide(0); 
     99                         This.items[i].className = ''; 
     100                    } 
     101      
     102                    i++; 
     103               }); 
     104          } 
    93105 
    94106          if (to_trigger != null) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map