From a59393db0e65aca4949d2caf247a9d3cdc424eb3 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Sun, 10 Sep 2017 11:21:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=BD=E4=BB=A4=E8=A1=8C=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=EF=BC=8C=E5=B9=B6=E8=87=AA=E5=8A=A8=E8=81=9A?= =?UTF-8?q?=E7=84=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/games/_repository.html.erb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/views/games/_repository.html.erb b/app/views/games/_repository.html.erb index b25984718..894fe737a 100644 --- a/app/views/games/_repository.html.erb +++ b/app/views/games/_repository.html.erb @@ -2,9 +2,9 @@
  • 代码
  • -
  • +
  • <% if @myshixun.shixun.try(:webssh) %> - 命令行 + 命令行 <% end %>
  • @@ -96,7 +96,7 @@ if($(".add-webssh").length == 5){ $(this).hide(); } - LoadingWebssh(); + LoadingWebssh(H); $('#blacktab_nav').find("li").click(function(){ if($(this).attr("id")=="codetab_nav_"+H+""){ HoverLi_new(H); @@ -115,7 +115,7 @@ } }); - function LoadingWebssh(){ + function LoadingWebssh(H){ $.ajax({ url: "<%= open_webssh_myshixun_path(@myshixun) %>", success: function(data){ @@ -128,7 +128,8 @@ // 测试版 var html = "
    "; // 本地版 - var html_local ="
    "; + var html_local ="
    "; + console.log(html); $("#codetab_con_"+H).html(html); $(".game_webssh").css("min-height", h); $(".game_webssh").css("max-height", h);