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

9 lines
598 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-01-15 17:36:30 +08:00
showModal('ajax-modal', '513px');
$('#ajax-modal').css('height','200px');
$('#ajax-modal').siblings().remove();
2015-01-15 18:22:30 +08:00
$('#ajax-modal').before("<span style='float: right;cursor:pointer;'>" +
2015-01-15 17:36:30 +08:00
"<a href='#' onclick='hidden_atert_form();'><img src='/images/bid/close.png' width='26px' height='26px' /></a></span>");
$('#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");