trim section name strings to remove whitespace
This commit is contained in:
@@ -686,7 +686,7 @@ function saveEditSectionName(e) {
|
||||
e.preventDefault();
|
||||
|
||||
id = $(this).closest("section.courseware-section").data("id");
|
||||
display_name = $(this).prev('.edit-section-name').val();
|
||||
display_name = $.trim($(this).prev('.edit-section-name').val());
|
||||
|
||||
if (display_name == '') {
|
||||
alert("You must specify a name before saving.")
|
||||
|
||||
Reference in New Issue
Block a user