题库发送预览弹框位置及可拖拽js更新
This commit is contained in:
parent
ea4f0d7d9d
commit
cd30f94d72
|
@ -8,7 +8,7 @@
|
|||
<%# else %>
|
||||
<% if params[:is_observe].nil? %>
|
||||
var htmlvalue = "<%= escape_javascript(render :partial => 'users/send_homework_to_course', :locals => {:courses => @course, :user => @user, :send_id => @send_id}) %>";
|
||||
pop_box_new(htmlvalue,460,50,50);
|
||||
pop_box_new(htmlvalue,460,435);
|
||||
<% else %>
|
||||
$("#send_homework_to_course_form").html("<%= escape_javascript(render :partial => 'users/send_homework_to_course_form', :locals => {:courses => @course, :user => @user, :send_id => @send_id}) %>");
|
||||
<% end %>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
$("#subject_count_homework_<%=@homework.id %>").html(<%= @homework.quotes %>);
|
||||
hideModal();
|
||||
var htmlvalue = "<%= escape_javascript(render :partial => 'homework_post_notice') %>";
|
||||
pop_box_new(htmlvalue,380,40,50);
|
||||
pop_box_new(htmlvalue,380,182);
|
|
@ -3,5 +3,5 @@
|
|||
$("#choose_courses_notice").html("");
|
||||
<% else %>
|
||||
var htmlvalue = "<%= escape_javascript(render :partial => 'users/homework_repository_detail') %>";
|
||||
pop_box_new(htmlvalue,820,50,50);
|
||||
pop_box_new(htmlvalue,820,155);
|
||||
<% end %>
|
|
@ -1495,7 +1495,7 @@ function pop_up_box(value,tWidth,tTop,tLeft){
|
|||
// 公共弹框样式
|
||||
function pop_box_new(value, Width, Height){
|
||||
w = ($(window).width() - Width)/2;
|
||||
h = ($(window).height() - Height)/2;
|
||||
h = ($(window).height() - Height)/2 - 100;
|
||||
$("#ajax-modal").html(value);
|
||||
showModal('ajax-modal', Width + 'px');
|
||||
$('#ajax-modal').siblings().remove();
|
||||
|
@ -1552,9 +1552,7 @@ function pop_box_new(value, Width, Height){
|
|||
document.onmousemove = null;
|
||||
}
|
||||
|
||||
window.onload = function () {
|
||||
new Drag("popupWrap");
|
||||
}
|
||||
new Drag("popupWrap");
|
||||
}
|
||||
|
||||
// 公共提示弹框样式
|
||||
|
|
Loading…
Reference in New Issue