renamed formbuilder patch files

This commit is contained in:
asus
2024-03-04 08:52:18 +01:00
parent cf9a020162
commit 44e122d415
6 changed files with 37 additions and 25 deletions

View File

@@ -0,0 +1,8 @@
// https://stackoverflow.com/questions/12741517/how-to-make-url-validation-without-http-or-add-it-after-validation-passed/44848476#44848476
let old_url = jQuery.validator.methods.url;
jQuery.validator.addMethod( 'url', function(value, element) {
let url = old_url.bind(this);
return url(value, element) || url('http://' + value, element);
}, 'Please enter a valid URL'
);