实训提交修改
This commit is contained in:
parent
587b4b73e0
commit
df688f8e4e
|
@ -70,7 +70,7 @@
|
|||
<h3 >操作</h3>
|
||||
</div>
|
||||
<div class="content-submitbox">
|
||||
<a href="javascript:void(0)" class="task-btn mb10" onclick="file_edit_submit()">保存修改</a>
|
||||
<a href="javascript:void(0)" class="task-btn task-btn-green mb10" style="display:none;" id="bottom_save_edit" onclick="file_edit_submit1()">保存修改</a>
|
||||
<! if(status == 0){ !>
|
||||
<div id="game_commit">
|
||||
<a href="javascript:void(0)" class="task-btn task-btn-green" onclick="training_task_submmit();">提交评测</a>
|
||||
|
@ -157,8 +157,9 @@
|
|||
}
|
||||
|
||||
|
||||
function file_edit_submit(){
|
||||
function file_edit_submit1(){
|
||||
$('#file_update_id').submit();
|
||||
$("#bottom_save_edit").hide();
|
||||
}
|
||||
|
||||
</script>
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<form action="/myshixuns/<%= @myshixun.id %>/games/<%= @game.id %>/file_update?path=<%= @path %>" method="post" id="file_update_id" data-remote="true">
|
||||
<li class="clearfix" xmlns="http://www.w3.org/1999/html" id="edit_code_contents">
|
||||
<textarea class = "" id="challenge-answer" name="content" style="height: 98%;width: 98%">
|
||||
<textarea class = "" id="challenge-answer" name="content" style="height: 98%;width: 98%;">
|
||||
<%= Redmine::CodesetUtil.replace_invalid_utf8(@content) %>
|
||||
</textarea>
|
||||
<script>
|
||||
|
@ -23,10 +23,6 @@
|
|||
matchBrackets: true
|
||||
});
|
||||
|
||||
editor.on('change',function(cMirror){
|
||||
// get value right from instance
|
||||
$('#challenge-answer').val(cMirror.getValue());
|
||||
});
|
||||
var web_h = window.innerHeight;
|
||||
$(document).ready(function(){
|
||||
if($.browser.msie) {
|
||||
|
|
|
@ -2,3 +2,4 @@ $("#file_entry_content").replaceWith('<%= escape_javascript(render :partial => '
|
|||
$("#file_entry_content_inner").html('<%= escape_javascript(render :partial => 'games/extend_file_edit_form') %>');
|
||||
$("#sava_edit_btn1").show();
|
||||
$("#sava_edit_btn").show();
|
||||
$("#bottom_save_edit").show();
|
Loading…
Reference in New Issue