socialforge/app/views/boards/show.js.erb

5 lines
395 B
Plaintext
Raw Normal View History

2015-12-29 16:40:07 +08:00
<% if @course %>
2016-04-27 16:02:52 +08:00
$("#course-boardlist").replaceWith('<%= escape_javascript( render :partial => 'users/course_boardlist', :locals => {:topics => @topics, :is_course => 1, :is_board=>1}) %>');
2015-12-29 16:40:07 +08:00
<% else %>
2016-04-27 16:02:52 +08:00
$("#project-boardlist").replaceWith('<%= escape_javascript( render :partial => 'users/project_boardlist', :locals => {:topics => @topics, :is_course => 1, :is_board=>1}) %>');
2015-12-29 16:40:07 +08:00
<% end %>