题库预览弹窗的调整

yuanke_cache v20160810_01
cxt 9 years ago
parent 9594aada50
commit 0ed508a887

@ -3,5 +3,5 @@
$("#choose_courses_notice").html(""); $("#choose_courses_notice").html("");
<% else %> <% else %>
var htmlvalue = "<%= escape_javascript(render :partial => 'users/homework_repository_detail') %>"; var htmlvalue = "<%= escape_javascript(render :partial => 'users/homework_repository_detail') %>";
pop_box_new(htmlvalue,820,155); pop_box_new(htmlvalue,820,800);
<% end %> <% end %>

@ -1495,7 +1495,7 @@ function pop_up_box(value,tWidth,tTop,tLeft){
// 公共弹框样式 // 公共弹框样式
function pop_box_new(value, Width, Height){ function pop_box_new(value, Width, Height){
w = ($(window).width() - Width)/2; w = ($(window).width() - Width)/2;
h = ($(window).height() - Height)/2 - 100; h = ($(window).height() - Height)/2;
$("#ajax-modal").html(value); $("#ajax-modal").html(value);
showModal('ajax-modal', Width + 'px'); showModal('ajax-modal', Width + 'px');
$('#ajax-modal').siblings().remove(); $('#ajax-modal').siblings().remove();

Loading…
Cancel
Save