Dotclear


Ignore:
File:
1 edited

Legend:

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

    r1280 r1737  
    99          breakerClassName: 'clear' 
    1010     }; 
    11  
     11      
    1212     var index = start_tab ? start_tab : 0; 
    13  
     13     var hash = document.location.hash.split('#').join(''); 
     14     if( hash != '' ) { 
     15          var index = hash; 
     16     } 
     17      
    1418     this.params = jQuery.extend(defaults,settings); 
    1519     this.divs = jQuery('div.'+this.params.className); 
    1620     this.createList(); 
    1721     this.showDiv(index); 
     22     var pageTabs = this; 
     23      
     24     window.onhashchange = function (event) { 
     25          pageTabs.showDiv(document.location.hash.split('#').join('')); 
     26    } 
    1827}; 
    1928 
     
    3948                    li = document.createElement('li'); 
    4049                    a = document.createElement('a'); 
    41                     a.appendChild(document.createTextNode(this.title)); 
     50                    $(a).html(this.title); 
    4251                    this.title = ''; 
    43                     a.href = '#'; 
    4452                    a.fn = This.showDiv; 
    4553                    a.index = this.id || i; 
     54                    a.href = '#'+a.index; 
     55                    li.id = "part-tabs-"+a.index; 
    4656                    a.obj = This; 
    47                     jQuery(a).click(function() { this.fn.call(this.obj,this.index); return false; }); 
    4857                    li.appendChild(a); 
    4958                    This.list.appendChild(li); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map