Commit d80c8340 by Chris Dodge

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

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