if(document.getElementById("popbox02")) { hideModal("#popbox02"); } $('#ajax-modal').html('<%= escape_javascript(render :partial => 'copy_course') %>'); showModal('ajax-modal', '730px'); $('#ajax-modal').css('height','530px').css('width','730px'); $('#ajax-modal').siblings().remove(); $('#ajax-modal').before("
" + "
"); $('#ajax-modal').parent().css("top","30%").css("left","").css("position","fixed"); $('#ajax-modal').parent().addClass("popbox").addClass("copyCoursePopup");