Changeset 1758:e20459ecc4a9 for admin/js/jquery/jquery.pageTabs.js
- Timestamp:
- 09/08/13 17:27:07 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/jquery/jquery.pageTabs.js
r1737 r1758 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.