Skip to content

Commit

Permalink
changed main validation function to correctly loop through all words
Browse files Browse the repository at this point in the history
  • Loading branch information
pedros committed Sep 21, 2011
1 parent d08ca6b commit f391cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _attachments/js/app.js
Expand Up @@ -54,7 +54,7 @@ function validate_submission() {
var form = $('#save-ratings-form');
var labels = form.find('label');
var valid = true;
for (var i = 0; i < labels.contents().length; i++) {
for (var i = 0; i < labels.length; i++) {
console.log(i + ": checking " + labels.eq(i).text());
if (labels.eq(i).text() === 'Not yet rated') {
labels.eq(i).css('color', 'red');
Expand Down

0 comments on commit f391cf8

Please sign in to comment.