socialforge/app/views/users/apply_resource.js.erb

10 lines
608 B
Plaintext
Raw Normal View History

2016-05-25 08:58:58 +08:00
<% if !User.current.logged? %>
2016-05-18 14:49:13 +08:00
alert("您还未登录");
2016-05-25 08:58:58 +08:00
<% else %>
2016-05-18 14:49:13 +08:00
$("#ajax-modal").html('<%= escape_javascript( render :partial => 'users/apply_resource', :locals => {:attachment => @attachment}) %>');
showModal('ajax-modal', '500px');
$('#ajax-modal').siblings().remove();
$('#ajax-modal').before("<span style='float: right;cursor:pointer;'>" +
"<a href='javascript:' onclick='hideModal();'><img src='/images/bid/close.png' width='26px' height='26px' /></a></span>");
2016-05-19 13:41:32 +08:00
$('#ajax-modal').parent().css("top","30%").css("left","37%").css("position","fixed").css("border","3px solid #269ac9");
2016-05-18 14:49:13 +08:00
<% end %>