Setting options without editing live-form-validation.js
rolandtoth opened this issue · comments
Roland Toth Pal commented
As I see there's no way to set options without editing "live-form-validation.js". It would be handy to be able to set custom options outside the js file, so one could copy the original js to another project or use different options on forms within one project.
I can share my working code if you're interested. It extends LiveForm.options with a user-defined options object.
Robert Pösel commented
Hi, it would be great if you can share your code as pull request.
Roland Toth Pal commented
Done:
#8
Robert Pösel commented
Thanks for that.
I realized better way of doing it. See b0a277e and updated readme.