- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/jquery/jquery.pageTabs.js
r1280 r1737 9 9 breakerClassName: 'clear' 10 10 }; 11 11 12 12 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 14 18 this.params = jQuery.extend(defaults,settings); 15 19 this.divs = jQuery('div.'+this.params.className); 16 20 this.createList(); 17 21 this.showDiv(index); 22 var pageTabs = this; 23 24 window.onhashchange = function (event) { 25 pageTabs.showDiv(document.location.hash.split('#').join('')); 26 } 18 27 }; 19 28 … … 39 48 li = document.createElement('li'); 40 49 a = document.createElement('a'); 41 a.appendChild(document.createTextNode(this.title));50 $(a).html(this.title); 42 51 this.title = ''; 43 a.href = '#';44 52 a.fn = This.showDiv; 45 53 a.index = this.id || i; 54 a.href = '#'+a.index; 55 li.id = "part-tabs-"+a.index; 46 56 a.obj = This; 47 jQuery(a).click(function() { this.fn.call(this.obj,this.index); return false; });48 57 li.appendChild(a); 49 58 This.list.appendChild(li);
Note: See TracChangeset
for help on using the changeset viewer.