课程作品列表搜索功能异常
This commit is contained in:
parent
7bab135ac7
commit
bf653fa94f
|
@ -36,7 +36,7 @@
|
|||
</span>
|
||||
<% if @show_all%>
|
||||
<input type="text" value="<%= @name%>" placeholder="昵称、学号、姓名搜索" class="min_search ml10 fl" onkeypress="SearchByName($(this),'<%= student_work_index_path(:homework => @homework.id)%>',event);">
|
||||
<a class="student_work_search fl" onclick="SearchByName($(this).prev(),'<%= student_work_index_path(:homework => @homework.id)%>');" href="javascript:void(0)">搜索</a>
|
||||
<a class="student_work_search fl" onclick="SearchByName_1($(this).prev(),'<%= student_work_index_path(:homework => @homework.id)%>');" href="javascript:void(0)">搜索</a>
|
||||
<% end%>
|
||||
<% if @is_teacher%>
|
||||
<div class="fr">
|
||||
|
|
|
@ -793,7 +793,7 @@ function SearchByName(obj,url,event)
|
|||
location.href = url + "&name=" + obj.val();
|
||||
}
|
||||
}
|
||||
function SearchByName(obj,url)
|
||||
function SearchByName_1(obj,url)
|
||||
{
|
||||
location.href = url + "&name=" + obj.val();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue