Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "proengsoft/laravel-jsvalidation",
"name": "thisismahabadi/laravel-jsvalidation",
"type": "library",
"description": "Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest",
"keywords": [
"proengsoft",
"thisismahabadi",
"laravel",
"javascript",
"validator",
"validation",
"jquery",
"form"
],
"homepage": "https://github.com/proengsoft/laravel-jsvalidation",
"homepage": "https://github.com/thisismahabadi/laravel-jsvalidation",
"license": "MIT",
"authors": [
{
Expand Down Expand Up @@ -42,21 +42,21 @@
},
"autoload": {
"psr-4": {
"Proengsoft\\JsValidation\\": "src"
"thisismahabadi\\JsValidation\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Proengsoft\\JsValidation\\Tests\\": "tests"
"thisismahabadi\\JsValidation\\Tests\\": "tests"
}
},
"extra": {
"laravel": {
"providers": [
"Proengsoft\\JsValidation\\JsValidationServiceProvider"
"thisismahabadi\\JsValidation\\JsValidationServiceProvider"
],
"aliases": {
"JsValidator": "Proengsoft\\JsValidation\\Facades\\JsValidatorFacade"
"JsValidator": "thisismahabadi\\JsValidation\\Facades\\JsValidatorFacade"
}
}
},
Expand Down
2 changes: 2 additions & 0 deletions resources/views/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
element.prop('type') === 'checkbox' || element.prop('type') === 'radio') {
error.insertAfter(element.parent());
// else just place the validation message immediately after the input
} else if (element.hasClass('select2') && element.next('.select2-container').length) {
error.insertAfter(element.next('.select2-container'));
} else {
error.insertAfter(element);
}
Expand Down