8 lines
693 B
Plaintext
8 lines
693 B
Plaintext
$('#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");
|
|
$('#ajax-modal').siblings().remove();
|
|
$('#ajax-modal').before("<div class='resourcePopupClose mt5 mr-5'>" +
|
|
"<a href='javascript:void(0)' class='resourceClose' onclick='hideModal();'></a></div>");
|
|
$('#ajax-modal').parent().css("top","30%").css("left","").css("position","fixed").css("padding-left","16px").css("padding-bottom","16px").css("padding-right","16px");
|
|
$('#ajax-modal').parent().addClass("popbox").addClass("referenceResourcesPopup"); |