socialforge/app/views/courses/copy_course.js.erb

14 lines
623 B
Plaintext
Raw Normal View History

if(document.getElementById("popbox02")) {
hideModal("#popbox02");
}
2016-01-08 10:49:02 +08:00
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'copy_course') %>');
showModal('ajax-modal', '730px');
2016-02-26 11:16:12 +08:00
$('#ajax-modal').css('height','auto').css('width','730px');
2016-01-08 10:49:02 +08:00
$('#ajax-modal').siblings().remove();
$('#ajax-modal').before("<div class='resourcePopupClose mt5 mr-5'>" +
"<a href='javascript:void(0)' class='resourceClose' onclick='hideResource();'></a></div>");
$('#ajax-modal').parent().css("top","30%").css("left","").css("position","fixed");
$('#ajax-modal').parent().addClass("popbox").addClass("copyCoursePopup");