Merge branch 'registry-660' into registry-661

This commit is contained in:
Artur Beljajev 2018-01-31 16:28:59 +02:00
commit a93d94d001
7 changed files with 14 additions and 9 deletions

View file

@ -13,7 +13,7 @@
00007, 60000007, 00000766 00007, 60000007, 00000766
:coffee :coffee
window.onload = -> load_listener = ->
$('.js-login').attr('disabled', false) $('.js-login').attr('disabled', false)
status_interval = null status_interval = null
@ -38,3 +38,4 @@
flash_alert(data.responseJSON.message) flash_alert(data.responseJSON.message)
$('.js-login').attr('disabled', false) $('.js-login').attr('disabled', false)
) )
window.addEventListener 'load', load_listener

View file

@ -22,7 +22,7 @@
= text_field_tag "domain[contacts_attributes][#{k}][code_helper]", contacts.find_by(code: v['code']).try(:search_name), class: 'form-control', data: {autocomplete: search_contacts_registrar_domains_path}, required: true = text_field_tag "domain[contacts_attributes][#{k}][code_helper]", contacts.find_by(code: v['code']).try(:search_name), class: 'form-control', data: {autocomplete: search_contacts_registrar_domains_path}, required: true
:coffee :coffee
window.onload = -> load_listener = ->
clone = $('.js-contact:first').clone() clone = $('.js-contact:first').clone()
$("#js-domain-contacts").nestedAttributes $("#js-domain-contacts").nestedAttributes
bindAddTo: $(".add-domain-contact") bindAddTo: $(".add-domain-contact")
@ -41,3 +41,4 @@
$(v).hide() $(v).hide()
new Autocomplete() new Autocomplete()
$clone: clone $clone: clone
window.addEventListener 'load', load_listener

View file

@ -68,11 +68,10 @@
class: 'form-control' class: 'form-control'
:coffee :coffee
window.onload = -> load_listener = ->
$("#dnskeys").nestedAttributes $("#dnskeys").nestedAttributes
bindAddTo: $(".add-dnskey") bindAddTo: $(".add-dnskey")
afterAdd: (item) -> afterAdd: (item) ->
item.find('select').each (k, v) -> item.find('select').each (k, v) ->
$(v).val($(v).find('option:first-child').val()) $(v).val($(v).find('option:first-child').val())
window.addEventListener 'load', load_listener

View file

@ -27,6 +27,7 @@
= text_field_tag "domain[nameservers_attributes][#{k}][ipv6]", v['ipv6'], = text_field_tag "domain[nameservers_attributes][#{k}][ipv6]", v['ipv6'],
class: 'form-control'#, ipv6: true class: 'form-control'#, ipv6: true
:coffee :coffee
window.onload = -> load_listener = ->
$("#nameservers").nestedAttributes $("#nameservers").nestedAttributes
bindAddTo: $(".add-nameserver") bindAddTo: $(".add-nameserver")
window.addEventListener 'load', load_listener

View file

@ -6,5 +6,6 @@
:coffeescript :coffeescript
window.onload = -> load_listener = ->
$('.payment-form form').submit() $('.payment-form form').submit()
window.addEventListener 'load', load_listener

View file

@ -82,9 +82,10 @@
%p.bg-info{style: 'padding: 15px;'}= t(:you_have_no_new_messages) %p.bg-info{style: 'padding: 15px;'}= t(:you_have_no_new_messages)
:coffee :coffee
window.onload = -> load_listener = ->
$(".js-keyrelay-confirm").on "click", -> $(".js-keyrelay-confirm").on "click", ->
$(".js-keyrelay-form").submit() $(".js-keyrelay-form").submit()
$(".js-transfer-confirm").on "click", -> $(".js-transfer-confirm").on "click", ->
$(".js-transfer-form").submit() $(".js-transfer-form").submit()
window.addEventListener 'load', load_listener

View file

@ -13,7 +13,7 @@
00007, 60000007, 00000766 00007, 60000007, 00000766
:coffee :coffee
window.onload = -> load_listener = ->
$('.js-login').attr('disabled', false) $('.js-login').attr('disabled', false)
status_interval = null status_interval = null
@ -38,3 +38,4 @@
flash_alert(data.responseJSON.message) flash_alert(data.responseJSON.message)
$('.js-login').attr('disabled', false) $('.js-login').attr('disabled', false)
) )
window.addEventListener 'load', load_listener