diff --git a/app/controllers/games_controller.rb b/app/controllers/games_controller.rb index 4265844d9..ad3bd71b6 100644 --- a/app/controllers/games_controller.rb +++ b/app/controllers/games_controller.rb @@ -1,3 +1,4 @@ +#coding=utf-8 class GamesController < ApplicationController layout "base_myshixun" skip_before_filter :verify_authenticity_token, :only => [:file_update] diff --git a/app/views/games/_exec_results.html.erb b/app/views/games/_exec_results.html.erb index 61b0e70a8..67741f12b 100644 --- a/app/views/games/_exec_results.html.erb +++ b/app/views/games/_exec_results.html.erb @@ -140,33 +140,7 @@ }); } function extend_window(){ - var web_h = window.innerHeight; - if($.browser.msie) { - $(".content-half-fix").css("width", "42%"); - $(".content-half-fix").css("height", web_h - 168 + "px"); - } - else if($.browser.safari) - { - $(".content-half-fix").css("width", "42%"); - $(".content-half-fix").css("height", web_h - 168 + "px"); - } - else if($.browser.mozilla) - { - $(".content-half-fix").css("width", "42.5%"); - $(".content-half-fix").css("height", web_h - 158 + "px"); - } - else if($.browser.opera) { - $(".content-half-fix").css("width", "42%"); - }else if($.browser.chrome){ - if(window.navigator.userAgent.indexOf("MetaSr") == -1){ - $(".content-half-fix").css("width", "42.5%"); - $(".content-half-fix").css("height", web_h - 160 + "px"); - }else{ - $(".content-half-fix").css("width", "42.5%"); - $(".content-half-fix").css("height", web_h - 155 + "px"); - } - } - $(".content-half-fix").show(); + // $(".content-half-fix").show(); } function hide_windows(){ $(".content-half-fix").hide(); diff --git a/app/views/games/_myshixun_repository.html.erb b/app/views/games/_myshixun_repository.html.erb index 169dde098..b292bd0ab 100644 --- a/app/views/games/_myshixun_repository.html.erb +++ b/app/views/games/_myshixun_repository.html.erb @@ -29,5 +29,6 @@ }); function file_edit_submit(){ $('#file_update_id').submit(); + $("#bottom_save_edit").hide(); } \ No newline at end of file