Permalink
Browse files

changed main validation function to correctly loop through all words

  • Loading branch information...
1 parent d08ca6b commit f391cf8da91e4bc13892693fac4a39b460450c87 @pedros pedros committed Sep 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 _attachments/js/app.js
View
@@ -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');

0 comments on commit f391cf8

Please sign in to comment.