<%= form_for('', :remote => true, :method => :post,:url => add_score_reply_student_work_index_path(:score_id => score.id)) do |f|%>
    <%= f.text_area 'message', :class => 'ping_text', :placeholder => l(:text_caracters_maximum,:count=>250),:maxlength => 250 %>
    <input type="hidden" value="<%= is_last%>" name="is_last">
    <a href="javascript:void(0);" class="fr blue_n_btn" onclick="add_score_Reply_submit('<%=score.id %>');">回复</a>
    <script type="text/javascript">
        var first_click = true;
        function add_score_Reply_submit(id){
            if(first_click) {
                first_click = false;
                $('#add_score_reply_'+id).find('form').submit();
            }
        }
    </script>
<% end%>
