mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 10:45:58 +02:00
Updated select2 box
This commit is contained in:
parent
5a9295f2bc
commit
ca0170b0e5
1 changed files with 24 additions and 26 deletions
|
@ -1,5 +1,6 @@
|
||||||
#domain-contacts
|
#js-domain-contacts
|
||||||
- @domain_params['contacts_attributes'].each do |k, v|
|
- @domain_params['contacts_attributes'].each do |k, v|
|
||||||
|
.js-contact
|
||||||
.panel.panel-default
|
.panel.panel-default
|
||||||
.panel-heading.clearfix
|
.panel-heading.clearfix
|
||||||
.pull-left= t(:contact)
|
.pull-left= t(:contact)
|
||||||
|
@ -22,8 +23,8 @@
|
||||||
include_blank: true, class: 'js-combobox js-contact-code', required: true
|
include_blank: true, class: 'js-combobox js-contact-code', required: true
|
||||||
|
|
||||||
:coffee
|
:coffee
|
||||||
clone = $('#domain-contacts').clone()
|
clone = $('.js-contact:first').clone()
|
||||||
$("#domain-contacts").nestedAttributes
|
$("#js-domain-contacts").nestedAttributes
|
||||||
bindAddTo: $(".add-domain-contact")
|
bindAddTo: $(".add-domain-contact")
|
||||||
afterAdd: (item) ->
|
afterAdd: (item) ->
|
||||||
# preselect type
|
# preselect type
|
||||||
|
@ -39,6 +40,3 @@
|
||||||
item.find('a.add-domain-contact').each (k, v) ->
|
item.find('a.add-domain-contact').each (k, v) ->
|
||||||
$(v).hide()
|
$(v).hide()
|
||||||
$clone: clone
|
$clone: clone
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue