测评历史点击详情展开

This commit is contained in:
daiao 2017-03-31 14:32:49 +08:00
parent 0a0ee2acb1
commit d9058b7fd8
3 changed files with 4 additions and 3 deletions

View File

@ -26,8 +26,8 @@
<p class="fl">错误结果!</p>
<a href="/myshixuns/<%= @myshixun.id %>/games/<%= @game.id %>/outputs_show?game_output_id=<!= results[i][1] !>" class="fr mr10" data-remote="true">详情</a>
<div class="cl"></div>
<div class="undis" style="background: #f5f9fc;padding: 10px" id="game_exception_results_<!= results[i][1] !>"></div>
</div>
<div class="undis" style="background: #f5f9fc;padding: 10px;margin-top:-10px;margin-bottom: 10px" id="game_exception_results_<!= results[i][1] !>"></div>
<! } !>
<! } !>
<!--<! } !>-->

View File

@ -22,8 +22,8 @@
<p class="fl">错误结果!</p>
<a href="/myshixuns/<%= @myshixun.id %>/games/<%= @game.id %>/outputs_show?game_output_id=<!= results[i][1] !>" class="fr mr10" data-remote="true">详情</a>
<div class="cl"></div>
<div class="undis" style="background: #f5f9fc;padding: 10px" id="extend_game_exception_results_<!= results[i][1] !>"></div>
</div>
<div class="undis" style="background: #f5f9fc;padding: 10px;margin-top:-10px;margin-bottom: 10px" id="extend_game_exception_results_<!= results[i][1] !>"></div>
<! } !>
<! } !>
</div>

View File

@ -1,4 +1,5 @@
$("#game_test_output").html("<%= @game.msg %>");
$("#game_test_output").html("<%= @game.out_put.nil? ? "没有编译结果" : @game.out_put %>");
// 窄版
$("#game_exception_results_<%= @game.id %>").html("<%= @game.msg %>");
$("#game_exception_results_<%= @game.id %>").toggle();