在线测验再次编辑时默认隐藏头部编辑块
This commit is contained in:
parent
1f4454d908
commit
0b25f36a7f
|
@ -229,6 +229,7 @@
|
|||
</div>
|
||||
<div class="ur_buttons">
|
||||
<%= link_to "保存",commit_exercise_exercise_path(exercise),:id=>"exercise_submit_btn", :method => :post,:class => "ur_button_submit",:style => "margin-left:80px;",:format => 'js',:remote=>true %>
|
||||
<%= link_to "提交",commit_exercise_exercise_path(exercise),:id=>"exercise_submit_btn", :method => :post,:class => "ur_button_submit",:style => "margin-left:80px;",:format => 'js',:remote=>true %>
|
||||
</div>
|
||||
<div class="cl"></div>
|
||||
<!--contentbox end-->
|
||||
|
|
|
@ -1 +1,9 @@
|
|||
<%= render :partial => 'exercise_form'%>
|
||||
<%= render :partial => 'exercise_form'%>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
<% if @exercise.exercise_name != "" && @exercise.end_time != "" %>
|
||||
$("#polls_head_show").show();
|
||||
$("#polls_head_edit").hide();
|
||||
<% end %>
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue