2015-09-01 11:29:43 +08:00
|
|
|
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'users/show_user_resource',:locals => {:user => @user,:homework_id=>@homework_id}) %>');
|
|
|
|
showModal('ajax-modal', '730px');
|
|
|
|
$('#ajax-modal').css('height','500px').css("width","730px");
|
2015-08-28 16:47:43 +08:00
|
|
|
$('#ajax-modal').siblings().remove();
|
2015-09-01 11:29:43 +08:00
|
|
|
$('#ajax-modal').before("<div class='resourcePopupClose mt5 mr-5'>" +
|
2015-09-28 17:09:07 +08:00
|
|
|
"<a href='javascript:void(0)' class='resourceClose' onclick='hideResource();'></a></div>");
|
|
|
|
$('#ajax-modal').parent().css("top","30%").css("left","").css("position","fixed");
|
2015-09-01 11:29:43 +08:00
|
|
|
$('#ajax-modal').parent().addClass("popbox").addClass("referenceResourcesPopup");
|