non security modules update
This commit is contained in:
@@ -67,25 +67,26 @@
|
||||
$('div.faq-qa-hide', context).hide();
|
||||
}
|
||||
$('div.faq-qa-header .faq-header:not(.faq-processed)', context).addClass('faq-processed').click(function() {
|
||||
var $this = $(this);
|
||||
if (faq_category_hide_qa_accordion) {
|
||||
$('div.faq-qa-header .faq-header').not($(this)).removeClass('faq-category-qa-visible');
|
||||
$('.faq-category-qa-visible').not($('.faq-category-qa-visible').closest('.faq-category-group').has($this).children('div.faq-qa-hide')).removeClass('faq-category-qa-visible');
|
||||
}
|
||||
$(this).toggleClass('faq-category-qa-visible');
|
||||
$('div.faq-qa-hide').not($(this).parent().next('div.faq-qa-hide')).addClass("collapsed");
|
||||
$('div.faq-qa-hide').not($this.parent().siblings('div.faq-qa-hide')).not($('div.faq-qa-hide').closest('.faq-category-group').has($this).children('div.faq-qa-hide')).addClass("collapsed");
|
||||
if (!faq_category_hide_qa_accordion) {
|
||||
$(this).parent().next('div.faq-qa-hide').slideToggle('fast', function() {
|
||||
$this.parent().siblings('div.faq-qa-hide').slideToggle('fast', function() {
|
||||
$(this).parent().toggleClass('expanded');
|
||||
});
|
||||
}
|
||||
$(this).parent().next('div.faq-qa-hide').toggleClass("collapsed");
|
||||
$this.parent().siblings('div.faq-qa-hide').toggleClass("collapsed");
|
||||
|
||||
// Scroll the page if the collapsed FAQ is not visible.
|
||||
// If we have the toolbar so the title may be hidden by the bar.
|
||||
var mainScrollTop = Math.max($('html', context).scrollTop(), $('body', context).scrollTop());
|
||||
// We compute mainScrollTop because the behaviour is different on FF, IE and CR
|
||||
if (mainScrollTop > $(this).offset().top) {
|
||||
if (mainScrollTop > $this.offset().top) {
|
||||
$('html, body', context).animate({
|
||||
scrollTop: $(this).offset().top
|
||||
scrollTop: $this.offset().top
|
||||
}, 1);
|
||||
}
|
||||
|
||||
@@ -122,7 +123,6 @@
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
})(jQuery);
|
||||
|
Reference in New Issue
Block a user