Merge pull request #939 from MITx/fix/cdodge/pre-push-tweeks

catch when users empty out a section name. don't allow them to do that.
This commit is contained in:
chrisndodge
2012-10-18 18:30:05 -07:00

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({