validation ignore class should be .hidden, ADDED comment class and odd even class to li created by js

This commit is contained in:
Shea Dawson 2013-02-22 18:02:42 +11:00
parent 8b66d9fda6
commit 6859980696

View File

@ -30,6 +30,7 @@
errorElement: "span",
errorClass: "error",
ignore: '.hidden',
rules: {
Name : {
@ -84,8 +85,9 @@
commentsList = $('.comments-list', commentsHolder);
}
var evenOdd = (commentsList.children('.first').removeClass('first').hasClass('even')) ? 'odd' : 'even';
var newComment = $('<li />')
.addClass('even first')
.addClass('comment first ' + evenOdd)
.html(response)
.hide();