Commit 851616d2 by chrisndodge

Merge pull request #913 from MITx/fix/cdodge/signup-tweeks

Fix/cdodge/signup tweeks
parents 16720f51 aa4361b3
...@@ -117,6 +117,8 @@ class CMS.Views.UnitEdit extends Backbone.View ...@@ -117,6 +117,8 @@ class CMS.Views.UnitEdit extends Backbone.View
@model.save() @model.save()
deleteComponent: (event) => deleteComponent: (event) =>
if not confirm 'Are you sure you want to delete this component? This action cannot be undone.'
return
$component = $(event.currentTarget).parents('.component') $component = $(event.currentTarget).parents('.component')
$.post('/delete_item', { $.post('/delete_item', {
id: $component.data('id') id: $component.data('id')
......
...@@ -500,7 +500,8 @@ function saveNewCourse(e) { ...@@ -500,7 +500,8 @@ function saveNewCourse(e) {
display_name = $newCourse.find('.new-course-name').val(); display_name = $newCourse.find('.new-course-name').val();
if (org == '' || number == '' || display_name == ''){ 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', $.post('/create_new_course',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment