局部刷新(临时-->戴)

This commit is contained in:
huang 2017-03-30 19:10:49 +08:00
parent 4bb810f47a
commit 11687d8abd
2 changed files with 10 additions and 11 deletions

View File

@ -4,11 +4,15 @@
<div id="content_list" class="CELL _FLEX ROWS">
<%= render :partial => "game_show" %>
</div>
<div id="content_attr_1">
<%= render :partial => 'desc_full_show'%>
</div>
<div class="col-width content-all-fix undis" style="border: none" id="myshixun_extend_repository">
<%= render :partial => 'myshixun_extend_repository' %>
</div>
<div id="content_attr_2">
<%= render :partial => 'extend_test_output' %>
</div>
<script type="text/javascript" language="javascript">
// contents_h 是中间左侧内容页的高度,不同浏览器的得到高度不一致

View File

@ -1,9 +1,4 @@
<% if params[:extend] == 'false' %>
$("#myshixun_repository").html('<%= escape_javascript(render :partial => 'games/myshixun_repository') %>');
$("#myshixun_extend_repository").html('<%= escape_javascript(render :partial => 'games/myshixun_extend_repository') %>');
<% elsif params[:extend].nil? %>
$("#content_list").html('<%= escape_javascript(render :partial => 'games/game_show') %>');
<% else %>
$("#content_attr_1").html('<%= escape_javascript(render :partial => 'games/desc_full_show') %>');
$("#myshixun_extend_repository").html('<%= escape_javascript(render :partial => 'games/myshixun_extend_repository') %>');
$("#myshixun_repository").html('<%= escape_javascript(render :partial => 'games/myshixun_repository') %>');
<% end %>
$("#content_attr_2").html('<%= escape_javascript(render :partial => 'games/extend_test_output') %>');