moved all aptches from cipf plugin to fbpatch

This commit is contained in:
asus
2024-03-24 17:06:10 +01:00
parent 1745d8754d
commit 569f4524d3
14 changed files with 96 additions and 631 deletions

View File

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