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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user