texasdiaz/FLLTS2013 — pull request #5 by courtney-g (2013-11-18 05:19:15+00:00)
Title: Fix spaces bug

Found the "real" problem with values with spaces.

When I added the javascript computation to the form, I had intended it to allow values and labels to be different. I'd put a translation array in place to handle the difference between the javascript score calculator and what the server wanted to see for submitted values. However, when building the HTML in getElements, I put the wrong value into the input value property and thus the submitted value was wrong. This commit fixes that issue.

I also added a cleanup commit as it was in the same area. I was calling normalize(name) in multiple places. Now refactored to call normalize once and use the normalized value everywhere it's needed.

Let me know what you think.

Courtney