Client side validations

This commit is contained in:
Priit Tark 2015-04-21 11:00:03 +03:00
parent e987e201ad
commit b51310062d
53 changed files with 503 additions and 305 deletions

View file

@ -0,0 +1,12 @@
ready = ->
$('.selectize').selectize({
allowEmptyOption: true
});
# client side validate all forms
$('form').each ->
$(this).validate()
$(document).ready(ready)
$(document).on('page:load', ready)