mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-09-30 21:29:16 +02:00
Merge pull request #259 from quantum-dragons/bugfix/reply-form-js-fix
Added JS fix for reply forms
This commit is contained in:
commit
6d7b14367a
@ -6,7 +6,8 @@
|
|||||||
/**
|
/**
|
||||||
* Enable form validation
|
* Enable form validation
|
||||||
*/
|
*/
|
||||||
$('.comments-holder-container form').validate({
|
$('.comments-holder-container form').each(function() {
|
||||||
|
$(this).validate({
|
||||||
|
|
||||||
// Ignore hidden elements in this form
|
// Ignore hidden elements in this form
|
||||||
ignore: ':hidden',
|
ignore: ':hidden',
|
||||||
@ -30,6 +31,7 @@
|
|||||||
.addClass('message')
|
.addClass('message')
|
||||||
.insertAfter(element);
|
.insertAfter(element);
|
||||||
}
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user