Ignore:
Timestamp:
Jan 28, 2012, 6:45:06 PM (12 years ago)
Author:
Zaphod
Message:

version 2.1.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped/js/scripts-tpp.js

    r12659 r12960  
    4949        var tab_start = null;
    5050       
    51         if (options.defaultTab) {
     51        if ( (options.defaultTab) && (options.themeStyle == "original") ) {
    5252                if (options.defaultTab != "none") tab_start = options.defaultTab;
    5353                if (options.defaultTab == "last") tab_start = jQuery.cookie("tabactive");
     
    9292                                        var tab_title = jQuery(this);
    9393                                        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                                                        }
    98101                                                }
    99102                                        });
     
    126129                        });
    127130                });
     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                }
    128154        }
    129155
Note: See TracChangeset for help on using the changeset viewer.