Changeset 12960 for extensions/stripped/js/scripts-tpp.js
- Timestamp:
- Jan 28, 2012, 6:45:06 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/stripped/js/scripts-tpp.js
r12659 r12960 49 49 var tab_start = null; 50 50 51 if ( options.defaultTab) {51 if ( (options.defaultTab) && (options.themeStyle == "original") ) { 52 52 if (options.defaultTab != "none") tab_start = options.defaultTab; 53 53 if (options.defaultTab == "last") tab_start = jQuery.cookie("tabactive"); … … 92 92 var tab_title = jQuery(this); 93 93 tab_blocks.each(function(index2) { 94 if ((index1 == index2) && (options.animatedTabs)) { 95 jQuery(this).slideUp(delay, function() {tab_title.removeClass("tabSelected");}); 96 } else { 97 jQuery(this).hide(); 94 if (index1 == index2) { 95 if (options.animatedTabs) { 96 jQuery(this).slideUp(delay, function() {tab_title.removeClass("tabSelected");}); 97 } else { 98 jQuery(this).hide(); 99 tab_title.removeClass("tabSelected"); 100 } 98 101 } 99 102 }); … … 126 129 }); 127 130 }); 131 132 if (options.themeStyle != "original") { 133 jQuery(".hideTabs").click(function() { 134 135 tab_titles.each(function(index1) { 136 if (jQuery(this).hasClass("tabSelected")) { 137 var tab_title = jQuery(this); 138 tab_blocks.each(function(index2) { 139 if (index1 == index2) { 140 if (options.animatedTabs) { 141 jQuery(this).slideUp(delay, function() {tab_title.removeClass("tabSelected");}); 142 } else { 143 jQuery(this).hide(); 144 tab_title.removeClass("tabSelected"); 145 } 146 } 147 }); 148 jQuery.cookie("tabactive",null); 149 } 150 }); 151 152 }); 153 } 128 154 } 129 155
Note: See TracChangeset
for help on using the changeset viewer.