parent
c176122c00
commit
3f51368bb2
@ -1,2 +1,8 @@
|
||||
$("#test_send_<%= @index%>").replaceWith("<a class='<%= @result == 0 ? 'green_btn' : 'red_btn'%> fl ml5 mt1 programing_test' onclick='programing_test(<%= @index%>)' id='test_send_<%= @index%>'><%= @result == 0 ? '正确' : '错误'%></a>");
|
||||
$("#test_result_<%= @index%>").val("<%= @result%>");
|
||||
$("#test_result_<%= @index%>").val("<%= @result%>");
|
||||
<% if @err_msg || @result != 0%>
|
||||
$("#homework_work_test_show").show();
|
||||
$("#homework_work_test_desc").text("<%= escape_javascript(@err_msg || status_to_err_msg(@result))%>");
|
||||
<% else%>
|
||||
$("#homework_work_test_show").hide();
|
||||
<% end%>
|
Loading…
Reference in new issue