Dotclear

Changeset 1792:3ad2e47ed52d for admin/js


Ignore:
Timestamp:
09/11/13 10:08:47 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Children:
1793:a25f8d0fd400, 1829:db77f6bb5df9, 1899:840b0d73f60c
Parents:
1790:13dd14dd5254 (diff), 1791:39acc93c9d30 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge 2.5 into default

Files:
2 edited

Legend:

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

    r1758 r1792  
    99          breakerClassName: 'clear' 
    1010     }; 
    11       
     11 
    1212     var index = start_tab ? start_tab : 0; 
    1313     var hash = document.location.hash.split('#').join(''); 
  • admin/js/jquery/jquery.pageTabs.js

    r1734 r1792  
    1515          var index = hash; 
    1616     } 
    17  
     17      
    1818     this.params = jQuery.extend(defaults,settings); 
    1919     this.divs = jQuery('div.'+this.params.className); 
     
    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