mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Match styling of existing error messages
This commit is contained in:
parent
0d3589ca24
commit
7098ab6509
|
@ -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…
Reference in a new issue