creation of the repo fbpatch

This commit is contained in:
asus
2024-07-17 15:30:32 +02:00
parent 1a071bf16f
commit 551dd7eee4
16 changed files with 1265 additions and 0 deletions

9
js/urls.js Normal file
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'
);