catch when users empty out a section name. don't allow them to do that.

This commit is contained in:
Chris Dodge
2012-10-18 21:27:45 -04:00
parent 8ad26fc27e
commit d80c834095

View File

@@ -610,6 +610,11 @@ function saveEditSectionName(e) {
id = $(this).closest("section.courseware-section").data("id");
display_name = $(this).prev('.edit-section-name').val();
if (display_name == '') {
alert("You must specify a name before saving.")
return;
}
var $_this = $(this);
// call into server to commit the new order
$.ajax({