A free open source IT asset/license management system
Fix validation messages for select2 inputs
Marcus Moore67494c1b0bdb
diff --git a/resources/views/layouts/default.blade.php b/resources/views/layouts/default.blade.phpindex cf0c728e14..a884a28d0d 100644--- a/resources/views/layouts/default.blade.php+++ b/resources/views/layouts/default.blade.php@@ -996,8 +996,8 @@ dir="{{ Helper::determineLanguageDirection() }}">errorElement: 'span',errorPlacement: function(error, element) {$(element).hasClass('select2') || $(element).hasClass('js-data-ajax')- // If the element is a select2 then place the error above the input- ? element.parents('.required').append(error)+ // If the element is a select2 then append the error to the parent div+ ? element.parent('div').append(error)// Otherwise place it after: error.insertAfter(element);},