2015-11-26 09:57:53 +08:00
|
|
|
<% case @search_type%>
|
|
|
|
<% when 'all'%>
|
|
|
|
$("#searchContent_1").html('<%= escape_javascript(render :partial => 'search_all_results',:locals => {:all_results=> @alls})%>');
|
|
|
|
<% when 'user'%>
|
|
|
|
$("#searchContent_2").html('<%= escape_javascript(render :partial => 'search_user_results',:locals => {:users=>@users})%>');
|
|
|
|
<% when 'course'%>
|
|
|
|
$("#searchContent_3").html('<%= escape_javascript(render :partial => 'search_course_results',:locals => {:courses=>@courses})%>');
|
|
|
|
<% when 'project'%>
|
|
|
|
$("#searchContent_5").html('<%= escape_javascript(render :partial => 'search_project_results',:locals => {:projects=>@projects})%>');
|
|
|
|
<% when 'attachment'%>
|
|
|
|
$("#searchContent_4").html('<%= escape_javascript(render :partial => 'search_attachment_results',:locals => {:attachments=>@attachments})%>');
|
2015-12-07 14:31:05 +08:00
|
|
|
<% when 'memo'%>
|
|
|
|
$("#searchContent_6").html('<%= escape_javascript(render :partial => 'search_memo_results',:locals => {:memos=>@memos})%>');
|
2015-11-26 09:57:53 +08:00
|
|
|
<%else%>
|
|
|
|
<%end %>
|