socialforge/app/views/users/expand_courses.js.erb

5 lines
458 B
Plaintext
Raw Normal View History

<% unless @courses.empty? %>
$("#syllabus_course_ul_<%=@syllabus.id %>").html("<%=escape_javascript(render :partial => 'users/courses_list', :locals => {:courses => @courses, :syllabus => @syllabus}) %>");
$("#syllabus_course_ul_<%=@syllabus.id %>").parent().show();
$("#syllabus_course_ul_<%=@syllabus.id %>").parent().prev().children(":first-child").children(":first-child").toggleClass("icons_sy_close").toggleClass("icons_sy_open");
<% end %>