mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
Client side validations
This commit is contained in:
parent
e987e201ad
commit
b51310062d
53 changed files with 503 additions and 305 deletions
12
app/assets/javascripts/admin/application.coffee
Normal file
12
app/assets/javascripts/admin/application.coffee
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue