mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 23:42:04 +02:00
Typeaheads refactor
This commit is contained in:
parent
d3e3c9e8b0
commit
bfe89c7a09
6 changed files with 38 additions and 19 deletions
|
@ -1,13 +1,6 @@
|
|||
ready = ->
|
||||
Autocomplete.bindTypeahead
|
||||
remote: '/admin/registrars/search'
|
||||
selector: '.js-registrar-typeahead'
|
||||
hiddenSelector: '.js-registrar-id'
|
||||
|
||||
Autocomplete.bindTypeahead
|
||||
remote: '/admin/contacts/search'
|
||||
selector: '.js-contact-typeahead'
|
||||
hiddenSelector: '.js-contact-id'
|
||||
Autocomplete.bindContactSearch()
|
||||
Autocomplete.bindRegistrarSearch()
|
||||
|
||||
$(document).ready(ready)
|
||||
$(document).on('page:load', ready)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue