return after warning user that not all create new course fields have been filled out

This commit is contained in:
Chris Dodge
2012-10-15 11:09:16 -04:00
parent 2aee549a76
commit 57df208930

View File

@@ -498,7 +498,8 @@ function saveNewCourse(e) {
display_name = $(this).prevAll('.new-course-name').val();
if (org == '' || number == '' || display_name == ''){
alert('You must specify all fields in order to create a new course.')
alert('You must specify all fields in order to create a new course.');
return;
}
$.post('/create_new_course',