CSS selector name change. .collapse -> collapsed.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12568 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2013-01-17 04:51:46 +00:00
parent 4d2ebf63f1
commit 126a697d9c
7 changed files with 11 additions and 11 deletions

View file

@ -226,15 +226,15 @@ jQuery(function($){
if($('.section').length > 1){
var $section_heading = $('.x .section').find('>h1:first');
$section_heading.append('<button type="button" class="snToggle x_icon-chevron-up">Toggle this section</button>');
$('.x .section.collapse>h1>.snToggle').removeClass('x_icon-chevron-up').addClass('x_icon-chevron-down');
$('.x .section.collapsed>h1>.snToggle').removeClass('x_icon-chevron-up').addClass('x_icon-chevron-down');
$section_heading.find('>.snToggle').click(function(){
var $this = $(this);
var $section = $this.closest('.section');
if(!$section.hasClass('collapse')){
$section.addClass('collapse');
if(!$section.hasClass('collapsed')){
$section.addClass('collapsed');
$this.removeClass('x_icon-chevron-up').addClass('x_icon-chevron-down');
} else {
$section.removeClass('collapse');
$section.removeClass('collapsed');
$this.removeClass('x_icon-chevron-down').addClass('x_icon-chevron-up');
}
reflow();