trim section name strings to remove whitespace

This commit is contained in:
Chris Dodge
2012-10-22 16:35:22 -04:00
parent 442516120c
commit 90a55714c2

View File

@@ -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.")