|
|
|
@ -94,23 +94,26 @@
|
|
|
|
|
|
|
|
|
|
$(".syllabus_courses_list").each(function(){
|
|
|
|
|
var syStaust = $(this).children(":first-child");
|
|
|
|
|
var classNum = $(this).next().children().children("li").size();
|
|
|
|
|
|
|
|
|
|
if (syStaust.hasClass("sy_courses_open")){
|
|
|
|
|
$(this).toggle(function(){
|
|
|
|
|
$(this).next().hide();
|
|
|
|
|
$(this).children(":first-child").children(":first-child").addClass("icons_sy_close").removeClass("icons_sy_open");
|
|
|
|
|
},function(){
|
|
|
|
|
$(this).next().show();
|
|
|
|
|
$(this).children(":first-child").children(":first-child").addClass("icons_sy_open").removeClass("icons_sy_close");
|
|
|
|
|
});
|
|
|
|
|
}else{
|
|
|
|
|
$(this).toggle(function(){
|
|
|
|
|
$(this).next().show();
|
|
|
|
|
$(this).children(":first-child").children(":first-child").addClass("icons_sy_open").removeClass("icons_sy_close");
|
|
|
|
|
},function(){
|
|
|
|
|
$(this).next().hide();
|
|
|
|
|
$(this).children(":first-child").children(":first-child").addClass("icons_sy_close").removeClass("icons_sy_open");
|
|
|
|
|
});
|
|
|
|
|
if(classNum>0){
|
|
|
|
|
if (syStaust.hasClass("sy_courses_open")){
|
|
|
|
|
$(this).toggle(function(){
|
|
|
|
|
$(this).next().hide();
|
|
|
|
|
$(this).children(":first-child").children(":first-child").addClass("icons_sy_close").removeClass("icons_sy_open");
|
|
|
|
|
},function(){
|
|
|
|
|
$(this).next().show();
|
|
|
|
|
$(this).children(":first-child").children(":first-child").addClass("icons_sy_open").removeClass("icons_sy_close");
|
|
|
|
|
});
|
|
|
|
|
}else{
|
|
|
|
|
$(this).toggle(function(){
|
|
|
|
|
$(this).next().show();
|
|
|
|
|
$(this).children(":first-child").children(":first-child").addClass("icons_sy_open").removeClass("icons_sy_close");
|
|
|
|
|
},function(){
|
|
|
|
|
$(this).next().hide();
|
|
|
|
|
$(this).children(":first-child").children(":first-child").addClass("icons_sy_close").removeClass("icons_sy_open");
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|