Changeset 1792:3ad2e47ed52d for admin/js
- Timestamp:
- 09/11/13 10:08:47 (12 years ago)
- 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. - Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/jquery/jquery.pageTabs.js
r1758 r1792 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(''); -
admin/js/jquery/jquery.pageTabs.js
r1734 r1792 15 15 var index = hash; 16 16 } 17 17 18 18 this.params = jQuery.extend(defaults,settings); 19 19 this.divs = jQuery('div.'+this.params.className); … … 78 78 var i = 0; 79 79 var to_trigger = null; 80 var exists = false; 80 81 81 82 this.divs.each(function() { 82 83 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; 89 85 } 90 91 86 i++; 92 87 }); 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 } 93 105 94 106 if (to_trigger != null) {
Note: See TracChangeset
for help on using the changeset viewer.