$('#ajax-modal').html('<%= escape_javascript( render :partial => 'repositories/quality_analysis', :locals => {}) %>'); showModal('ajax-modal', '615px'); $('#ajax-modal').siblings().remove(); $('#ajax-modal').before(""); $('#ajax-modal').parent().css("top","20%").css("left","42%").css("border","3px solid #269ac9"); $('#ajax-modal').parent().addClass("popbox_polls");