保存修改按钮放上面

This commit is contained in:
daiao 2017-03-23 09:04:02 +08:00
parent c8c3b6188c
commit 57a6b4d322
3 changed files with 7 additions and 9 deletions

View File

@ -55,7 +55,6 @@
<h3 >操作</h3>
</div>
<div class="content-submitbox">
<a href="javascript:void(0)" class="task-btn mb10" onclick="file_edit_submit()">保存修改</a>
<! if(status == 0){ !>
<div id="game_commit">
<a href="javascript:void(0)" class="task-btn task-btn-green" onclick="training_task_submmit();">提交评测</a>
@ -137,10 +136,4 @@
function hide_windows(){
$(".content-half-fix").hide();
}
function file_edit_submit(){
$('#file_update_id').submit();
}
</script>

View File

@ -4,7 +4,8 @@
</h3>
<div class="fr mt5">
<% if params[:action] == "entry" %>
<a href="<%= file_edit_myshixun_game_path(@game, :myshixun_id => @myshixun, :path => params[:path]) %>" data-remote="true"><i class="fa fa-edit font-18 fl color-grey mr10"></i></a>
<a href="javascript:void(0)" class="fl task-btn mb10 mr10" style="display: none" id="sava_edit_btn" onclick="file_edit_submit()">保存修改</a>
<a href="<%= file_edit_myshixun_game_path(@game, :myshixun_id => @myshixun, :path => params[:path]) %>" data-remote="true" ><i class="fa fa-edit font-18 fl color-grey mr10"></i></a>
<% end %>
<a href="javascript:void(0)" onclick="extend_repository();"><i class="fa fa-expand font-18 fl color-grey"></i></a>
</div>
@ -56,4 +57,7 @@
}
}
});
function file_edit_submit(){
$('#file_update_id').submit();
}
</script>

View File

@ -1 +1,2 @@
$("#file_entry_content").html('<%= escape_javascript(render :partial => 'games/file_edit_form') %>');
$("#file_entry_content").html('<%= escape_javascript(render :partial => 'games/file_edit_form') %>');
$("#sava_edit_btn").show();