- removed jquery validator url patch to put it in another plugin

- starting to try the form_builder hooks for modif acf fields
This commit is contained in:
asus
2024-02-18 13:06:02 +01:00
parent 74fc6e3d1b
commit e9032647f2
3 changed files with 31 additions and 28 deletions

View File

@@ -1,8 +0,0 @@
// 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'
);