socialforge/app/views/news/index.js.erb

5 lines
343 B
Plaintext
Raw Normal View History

2015-12-24 09:57:32 +08:00
<% if @project %>
$("#show_more_project_news").replaceWith("<%= escape_javascript(render :partial => 'project_news_detail', :locals=>{ :all_news=>@newss,:page => @page})%>");
2015-12-24 09:57:32 +08:00
<% else %>
2016-04-29 13:42:58 +08:00
$("#course-newslist").replaceWith('<%= escape_javascript( render :partial => 'users/course_newslist', :locals => {:topics => @newss}) %>');
2015-12-24 09:57:32 +08:00
<% end %>