Merge pull request #48 from sheadawson/interface_js_update

validation ignore class should be .hidden
This commit is contained in:
Will Rossiter 2013-02-21 23:08:39 -08:00
commit b288b94e4b

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();