mirror of
https://github.com/internetee/registry.git
synced 2025-08-11 12:09:34 +02:00
Run all inline JS on window.load
This commit is contained in:
parent
2c73154948
commit
578d60cf44
7 changed files with 35 additions and 36 deletions
|
@ -12,7 +12,8 @@
|
|||
%div.text-center
|
||||
00007, 60000007, 00000766
|
||||
|
||||
:coffee
|
||||
:coffee
|
||||
window.onload = ->
|
||||
$('.js-login').attr('disabled', false)
|
||||
|
||||
status_interval = null
|
||||
|
@ -37,4 +38,3 @@
|
|||
flash_alert(data.responseJSON.message)
|
||||
$('.js-login').attr('disabled', false)
|
||||
)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
:coffee
|
||||
window.ready = ->
|
||||
window.onload = ->
|
||||
clone = $('.js-contact:first').clone()
|
||||
$("#js-domain-contacts").nestedAttributes
|
||||
bindAddTo: $(".add-domain-contact")
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
class: 'form-control'
|
||||
|
||||
:coffee
|
||||
window.ready = ->
|
||||
window.onload = ->
|
||||
$("#dnskeys").nestedAttributes
|
||||
bindAddTo: $(".add-dnskey")
|
||||
afterAdd: (item) ->
|
||||
|
|
|
@ -27,6 +27,6 @@
|
|||
= text_field_tag "domain[nameservers_attributes][#{k}][ipv6]", v['ipv6'],
|
||||
class: 'form-control'#, ipv6: true
|
||||
:coffee
|
||||
window.ready = ->
|
||||
window.onload = ->
|
||||
$("#nameservers").nestedAttributes
|
||||
bindAddTo: $(".add-nameserver")
|
||||
|
|
|
@ -6,5 +6,5 @@
|
|||
|
||||
|
||||
:coffeescript
|
||||
window.ready = ->
|
||||
window.onload = ->
|
||||
$('.payment-form form').submit()
|
||||
|
|
|
@ -82,7 +82,7 @@
|
|||
%p.bg-info{style: 'padding: 15px;'}= t(:you_have_no_new_messages)
|
||||
|
||||
:coffee
|
||||
window.ready = ->
|
||||
window.onload = ->
|
||||
$(".js-keyrelay-confirm").on "click", ->
|
||||
$(".js-keyrelay-form").submit()
|
||||
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
%div.text-center
|
||||
00007, 60000007, 00000766
|
||||
|
||||
:coffee
|
||||
window.ready = ->
|
||||
:coffee
|
||||
window.onload = ->
|
||||
$('.js-login').attr('disabled', false)
|
||||
|
||||
status_interval = null
|
||||
|
@ -38,4 +38,3 @@
|
|||
flash_alert(data.responseJSON.message)
|
||||
$('.js-login').attr('disabled', false)
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue