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

10 lines
635 B
Plaintext
Raw Normal View History

2016-05-04 16:17:37 +08:00
<% if @state == 1 %>
alert("您还未登录");
<% elsif @state == 2 %>
$("#ajax-modal").html('<%= escape_javascript( render :partial => 'users/apply_homework', :locals => {:homework => @homework}) %>');
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>");
$('#ajax-modal').parent().css("top","30%").css("left","30%").css("position","fixed").css("border","3px solid #269ac9");
<% end %>