socialforge/app/views/homework_attach/show.js.erb

11 lines
577 B
Plaintext
Raw Normal View History

$('#ajax-modal').html('<%= escape_javascript(render :partial => 'show') %>');
showModal('ajax-modal', '513px');
2014-10-31 09:48:34 +08:00
$('#ajax-modal').css('height','569px');
$('#ajax-modal').siblings().remove();
2014-11-06 16:05:12 +08:00
$('#ajax-modal').before("<span style='float: right;cursor:pointer;padding-left: 513px;'>" +
"<a href='#' onclick='hidden_homework_atert_form();'><img src='/images/bid/close.png' width='26px' height='26px' /></a></span>");
$('#ajax-modal').parent().removeClass("alert_praise");
$('#ajax-modal').parent().css("top","").css("left","");
$('#ajax-modal').parent().addClass("alert_box");