2015-08-20 17:00:54 +08:00
|
|
|
//var screenWidth = $(window).width();
|
|
|
|
//var screenHeight = $(window).height(); //当前浏览器窗口的 宽高
|
|
|
|
//var scrolltop = $(document).scrollTop();//获取当前窗口距离页面顶部高度
|
|
|
|
//var objLeft = (screenWidth - 2)/2.5 ; //2 可以根据需要修改
|
|
|
|
//var objTop = (screenHeight - 100)/2 + scrolltop; //100可以根据需要修改
|
2015-08-20 10:14:26 +08:00
|
|
|
var popupHeight = $(".resourceSharePopup").outerHeight(true);
|
|
|
|
$(".resourceSharePopup").css("marginTop",-popupHeight/2);
|
|
|
|
|
2015-08-20 17:00:54 +08:00
|
|
|
$("#upload_box").css('left','').css('top','');
|
2015-08-20 16:05:58 +08:00
|
|
|
$("#upload_box").html('<%= escape_javascript( render :partial => "resource_share_for_project_popup" ,:locals => {:projects=>@projects,:user=>@user,:send_id=>@send_id,:send_ids=>@send_ids})%>');
|
2015-08-20 10:14:26 +08:00
|
|
|
$("#upload_box").css('display','block');
|