2015-01-21 11:14:01 +08:00
|
|
|
$("#polls_<%= @poll.id %>").html("<%= escape_javascript(render :partial => 'poll',:locals => {:poll => @poll}) %>");
|
2015-02-06 09:32:32 +08:00
|
|
|
$('#ajax-modal').html("<%= escape_javascript(render :partial => 'alert', locals: { :message => l(:label_poll_republish_success)}) %>");
|
2015-03-06 09:45:38 +08:00
|
|
|
showModal('ajax-modal', '250px');
|
2015-03-20 15:59:16 +08:00
|
|
|
//$('#ajax-modal').css('height','80px');
|
2015-02-06 09:32:32 +08:00
|
|
|
$('#ajax-modal').siblings().remove();
|
|
|
|
$('#ajax-modal').before("<span style='float: right;cursor:pointer;'>" +
|
2015-03-25 10:21:33 +08:00
|
|
|
"<a href='javascript:' onclick='close_alert_form();'><img src='/images/bid/close.png' width='26px' height='26px' /></a></span>");
|
2015-02-06 09:32:32 +08:00
|
|
|
$('#ajax-modal').parent().removeClass("alert_praise");
|
|
|
|
$('#ajax-modal').parent().css("top","").css("left","");
|
|
|
|
$('#ajax-modal').parent().addClass("poll_alert_form");
|