修改作业提交评论需要点击两次
This commit is contained in:
parent
77d72039fe
commit
4d01ec212a
|
@ -19,11 +19,11 @@
|
|||
}
|
||||
}
|
||||
|
||||
function submit1(is_teacher)
|
||||
function submit_jours(is_teacher)
|
||||
{
|
||||
if($("#stars_value").val() == "0"){alert("您还没有打分");return;}
|
||||
if(!is_teacher&&$("#new_form_user_message").val() == ""){alert("您还没有填写评语");return;}
|
||||
$('#jours_submit').parent().submit();
|
||||
$('#new_form_user_message').parent().submit();
|
||||
}
|
||||
</script>
|
||||
|
||||
|
@ -53,7 +53,7 @@
|
|||
:maxlength => 250 %>
|
||||
<%= f.text_field :reference_user_id, :style=>"display:none"%>
|
||||
<div style="float:right">
|
||||
<a href="#" class="ping_sub1" id="jours_submit" onclick="submit1(<%= @is_teacher%>);">
|
||||
<a href="#" class="ping_sub1" id="jours_submit" onclick="submit_jours(<%= @is_teacher%>);">
|
||||
<%= l(:label_confirmation) %>
|
||||
</a>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue