Install jquery-validation package

This commit is contained in:
Marcus Moore 2023-11-13 18:15:18 -08:00
parent 442cad69a7
commit f02ff62a08
No known key found for this signature in database
4 changed files with 12 additions and 7 deletions

9
package-lock.json generated
View file

@ -25,6 +25,7 @@
"jquery-slimscroll": "^1.3.8", "jquery-slimscroll": "^1.3.8",
"jquery-ui": "^1.13.2", "jquery-ui": "^1.13.2",
"jquery-ui-bundle": "^1.12.1", "jquery-ui-bundle": "^1.12.1",
"jquery-validation": "^1.20.0",
"jquery.iframe-transport": "^1.0.0", "jquery.iframe-transport": "^1.0.0",
"jspdf-autotable": "^3.5.30", "jspdf-autotable": "^3.5.30",
"less": "^4.2.0", "less": "^4.2.0",
@ -7788,6 +7789,14 @@
"resolved": "https://registry.npmjs.org/jquery-ui-bundle/-/jquery-ui-bundle-1.12.1.tgz", "resolved": "https://registry.npmjs.org/jquery-ui-bundle/-/jquery-ui-bundle-1.12.1.tgz",
"integrity": "sha512-GHaOlAemudaYqrBzaU0XutgC/vBwcvd+SBQ+TtUTA+dLx4PiVQAfTm3ABrh+JzhV6PZBOk8AIhsC9l+XggpldQ==" "integrity": "sha512-GHaOlAemudaYqrBzaU0XutgC/vBwcvd+SBQ+TtUTA+dLx4PiVQAfTm3ABrh+JzhV6PZBOk8AIhsC9l+XggpldQ=="
}, },
"node_modules/jquery-validation": {
"version": "1.20.0",
"resolved": "https://registry.npmjs.org/jquery-validation/-/jquery-validation-1.20.0.tgz",
"integrity": "sha512-c8tg4ltIIP6L7l0bZ79sRzOJYquyjS48kQZ6iv8MJ2r0OYztxtkWYKTReZyU2/zVFYiINB29i0Z/IRNNuJQN1g==",
"peerDependencies": {
"jquery": "^1.7 || ^2.0 || ^3.1"
}
},
"node_modules/jquery.iframe-transport": { "node_modules/jquery.iframe-transport": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/jquery.iframe-transport/-/jquery.iframe-transport-1.0.0.tgz", "resolved": "https://registry.npmjs.org/jquery.iframe-transport/-/jquery.iframe-transport-1.0.0.tgz",

View file

@ -44,6 +44,7 @@
"jquery-slimscroll": "^1.3.8", "jquery-slimscroll": "^1.3.8",
"jquery-ui": "^1.13.2", "jquery-ui": "^1.13.2",
"jquery-ui-bundle": "^1.12.1", "jquery-ui-bundle": "^1.12.1",
"jquery-validation": "^1.20.0",
"jquery.iframe-transport": "^1.0.0", "jquery.iframe-transport": "^1.0.0",
"jspdf-autotable": "^3.5.30", "jspdf-autotable": "^3.5.30",
"less": "^4.2.0", "less": "^4.2.0",

View file

@ -965,12 +965,7 @@
$('.js-copy-link').tooltip('hide').attr('data-original-title', '{{ trans('general.copied') }}').tooltip('show'); $('.js-copy-link').tooltip('hide').attr('data-original-title', '{{ trans('general.copied') }}').tooltip('show');
}); });
// ignore: 'input[type=hidden]' is required here to validate the select2 lists $('#create-form').validate({
$.validate({
form: '#create-form',
modules: 'date, toggleDisabled',
disabledFormFilter: '#create-form',
showErrorDialogs: true,
ignore: 'input[type=hidden]' ignore: 'input[type=hidden]'
}); });

View file

@ -154,7 +154,7 @@ mix.combine(
"./resources/assets/js/extensions/pGenerator.jquery.js", "./resources/assets/js/extensions/pGenerator.jquery.js",
"./node_modules/chart.js/dist/Chart.js", "./node_modules/chart.js/dist/Chart.js",
"./resources/assets/js/signature_pad.js", "./resources/assets/js/signature_pad.js",
//"./node_modules/jquery-form-validator/form-validator/jquery.form-validator.js", //problem? "./node_modules/jquery-validation/dist/jquery.validate.js",
"./node_modules/list.js/dist/list.js", "./node_modules/list.js/dist/list.js",
"./node_modules/clipboard/dist/clipboard.js", "./node_modules/clipboard/dist/clipboard.js",
], ],