局部刷新(临时-->戴)
This commit is contained in:
parent
4bb810f47a
commit
11687d8abd
|
@ -4,11 +4,15 @@
|
|||
<div id="content_list" class="CELL _FLEX ROWS">
|
||||
<%= render :partial => "game_show" %>
|
||||
</div>
|
||||
<%= render :partial => 'desc_full_show'%>
|
||||
<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>
|
||||
<%= render :partial => 'extend_test_output' %>
|
||||
<div id="content_attr_2">
|
||||
<%= render :partial => 'extend_test_output' %>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" language="javascript">
|
||||
// contents_h 是中间左侧内容页的高度,不同浏览器的得到高度不一致
|
||||
|
|
|
@ -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 %>
|
||||
$("#myshixun_extend_repository").html('<%= escape_javascript(render :partial => 'games/myshixun_extend_repository') %>');
|
||||
$("#myshixun_repository").html('<%= escape_javascript(render :partial => 'games/myshixun_repository') %>');
|
||||
<% end %>
|
||||
$("#content_list").html('<%= escape_javascript(render :partial => 'games/game_show') %>');
|
||||
$("#content_attr_1").html('<%= escape_javascript(render :partial => 'games/desc_full_show') %>');
|
||||
$("#myshixun_extend_repository").html('<%= escape_javascript(render :partial => 'games/myshixun_extend_repository') %>');
|
||||
$("#content_attr_2").html('<%= escape_javascript(render :partial => 'games/extend_test_output') %>');
|
||||
|
|
Loading…
Reference in New Issue