Updated select2 box

This commit is contained in:
Priit Tark 2015-05-11 17:41:58 +03:00
parent 5a9295f2bc
commit ca0170b0e5

View file

@ -1,5 +1,6 @@
#domain-contacts
#js-domain-contacts
- @domain_params['contacts_attributes'].each do |k, v|
.js-contact
.panel.panel-default
.panel-heading.clearfix
.pull-left= t(:contact)
@ -22,8 +23,8 @@
include_blank: true, class: 'js-combobox js-contact-code', required: true
:coffee
clone = $('#domain-contacts').clone()
$("#domain-contacts").nestedAttributes
clone = $('.js-contact:first').clone()
$("#js-domain-contacts").nestedAttributes
bindAddTo: $(".add-domain-contact")
afterAdd: (item) ->
# preselect type
@ -39,6 +40,3 @@
item.find('a.add-domain-contact').each (k, v) ->
$(v).hide()
$clone: clone