Commit 90a55714 by Chris Dodge

trim section name strings to remove whitespace

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