removed new course button on click to prevent multiple instantiations

This commit is contained in:
Tom Giannattasio
2012-12-04 11:00:28 -05:00
parent 1845fc7211
commit 4e7d931d7e
4 changed files with 13 additions and 4 deletions

View File

@@ -588,6 +588,8 @@ function hideToastMessage(e) {
function addNewSection(e, isTemplate) {
e.preventDefault();
$(e.target).hide();
var $newSection = $($('#new-section-template').html());
var $cancelButton = $newSection.find('.new-section-name-cancel');
$('.new-courseware-section-button').after($newSection);