2015-08-28 10:47:50 +08:00
|
|
|
|
2015-08-28 09:34:02 +08:00
|
|
|
//var popupHeight = $(".resourceSharePopup").outerHeight(true);
|
|
|
|
//$(".resourceSharePopup").css("marginTop",-popupHeight/2);
|
|
|
|
//
|
|
|
|
//$("#upload_box").css('left','').css('top','');
|
|
|
|
//$("#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})%>');
|
|
|
|
//$("#upload_box").css('display','block');
|
|
|
|
$("#ajax-modal").html('<%= escape_javascript( render :partial => 'resource_share_for_project_popup' ,:locals => {:projects=>@projects,:user=>@user,:send_id=>@send_id,:send_ids=>@send_ids})%>');
|
|
|
|
showModal('ajax-modal', '452px');
|
|
|
|
$('#ajax-modal').siblings().remove();
|
|
|
|
$('#ajax-modal').before("<a href='javascript:void(0)' onclick='closeModal();' style='margin-left: 435px;' class='resourceClose'></a>");
|
2015-08-28 10:47:50 +08:00
|
|
|
$('#ajax-modal').parent().css("top","").css("left","");
|
|
|
|
$('#ajax-modal').parent().addClass("resourceUploadPopup").addClass("popbox")
|
|
|
|
$('#ajax-modal').css("padding-left","16px").css("padding-bottom","16px");
|