$('#ajax-modal').html('<%= escape_javascript(render :partial => 'commit_alert') %>'); showModal('ajax-modal', '513px'); $('#ajax-modal').css('height','200px'); $('#ajax-modal').siblings().remove(); $('#ajax-modal').before("" + ""); $('#ajax-modal').parent().removeClass("alert_praise"); $('#ajax-modal').parent().css("top","50%").css("left","20%"); $('#ajax-modal').parent().css("position","absolute"); $('#ajax-modal').parent().addClass("alert_box");