socialforge/app/views/poll/commit_poll.js.erb

9 lines
608 B
Plaintext
Raw Normal View History

2015-01-15 18:22:30 +08:00
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'commit_alert',:locals => {:status => @status}) %>');
2015-03-25 11:06:35 +08:00
showModal('ajax-modal', '250px');
2015-01-15 18:35:27 +08:00
$('#ajax-modal').css('height','100px');
2015-01-15 17:36:30 +08:00
$('#ajax-modal').siblings().remove();
2015-01-15 18:22:30 +08:00
$('#ajax-modal').before("<span style='float: right;cursor:pointer;'>" +
"<a href='javascript:' onclick='hidden_atert_form();'><img src='/images/bid/close.png' width='26px' height='26px' /></a></span>");
2015-01-15 17:36:30 +08:00
$('#ajax-modal').parent().removeClass("alert_praise");
2015-01-15 18:22:30 +08:00
$('#ajax-modal').parent().css("top","").css("left","");
2015-01-15 17:36:30 +08:00
$('#ajax-modal').parent().addClass("alert_box");