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

9 lines
642 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-06-09 17:11:54 +08:00
showModal('ajax-modal', '270px');
$('#ajax-modal').css('height','110px');
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");
2016-01-20 16:03:28 +08:00
$('#ajax-modal').parent().css("top","").css("left","").css("border","3px solid #269ac9");
2015-01-15 17:36:30 +08:00
$('#ajax-modal').parent().addClass("alert_box");