From 57df2089301ab222f0d1a1e6801c19b440b71554 Mon Sep 17 00:00:00 2001 From: Chris Dodge Date: Mon, 15 Oct 2012 11:09:16 -0400 Subject: [PATCH] return after warning user that not all create new course fields have been filled out --- cms/static/js/base.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cms/static/js/base.js b/cms/static/js/base.js index b0cb73cb50..333c44f023 100644 --- a/cms/static/js/base.js +++ b/cms/static/js/base.js @@ -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',