Match styling of existing error messages
This commit is contained in:
parent
0d3589ca24
commit
7098ab6509
1 changed files with 10 additions and 1 deletions
|
@ -966,7 +966,16 @@
|
|||
});
|
||||
|
||||
$('#create-form').validate({
|
||||
ignore: 'input[type=hidden]'
|
||||
ignore: 'input[type=hidden]',
|
||||
errorClass: 'help-block form-error',
|
||||
errorElement: 'span',
|
||||
errorPlacement: function(error, element) {
|
||||
element.parents('.required').append(error);
|
||||
},
|
||||
highlight: function(inputElement) {
|
||||
$(inputElement).parent().addClass('has-error');
|
||||
$(inputElement).closest('.help-block').remove();
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue