修复搜索参赛作品结果翻页跳转不正确的BUG

This commit is contained in:
sw 2014-07-29 17:55:14 +08:00
parent c4aa9aadbe
commit 28606f030d
3 changed files with 13 additions and 2 deletions

View File

@ -330,7 +330,7 @@ class SoftapplicationsController < ApplicationController
#new added end
respond_to do |format|
format.js
format.html
end
end

View File

@ -17,7 +17,7 @@
<td style="width: 430px; color: #15bccf"><strong><%= l(:label_user_location) %> : </strong></td>
<td rowspan="2" width="305px">
<div class="project-search" style="float: right">
<%= form_tag({:controller => 'softapplications', :action => 'search'}, :method => :get, :remote => true, :id => "search_softapplications") do %>
<%= form_tag({:controller => 'softapplications', :action => 'search'}, :method => :get, :id => "search_softapplications") do %>
<%= text_field_tag 'name', params[:name], :size => 25 %>
<%= hidden_field_tag 'project_type', params[:project_type] %>
<input type="button" class="enterprise" value="<%= l(:label_search) %>" onclick="searchUser();"/>

View File

@ -0,0 +1,11 @@
<%=render :partial => 'layouts/base_softapplication_index_top_content'%>
<% if @softapplications.size > 0%>
<%#= sort_softapplication(@s_state)%>
<div width="95%" border="0" style="padding-left: 10px; padding-top: 10px;" id="softapplications_list">
<%= render :partial => "list" %>
</div>
<% else %>
<%= render :partial => "layouts/no_content"%>
<% end %>
<% html_title l(:label_contest_work_list)%>