mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Do not use turbolinks gem in registrar area
This commit is contained in:
parent
189129ec48
commit
c4b8a5b71b
5 changed files with 4 additions and 11 deletions
|
@ -12,10 +12,5 @@
|
||||||
dateFields.datepicker();
|
dateFields.datepicker();
|
||||||
}
|
}
|
||||||
|
|
||||||
// For turbolinks
|
|
||||||
document.addEventListener('page:change', function() {
|
|
||||||
attachDatePicker();
|
|
||||||
});
|
|
||||||
|
|
||||||
attachDatePicker();
|
attachDatePicker();
|
||||||
})();
|
})();
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#= require jquery
|
#= require jquery
|
||||||
#= require jquery_ujs
|
#= require jquery_ujs
|
||||||
#= require turbolinks
|
|
||||||
#= require bootstrap-sprockets
|
#= require bootstrap-sprockets
|
||||||
#= require typeahead.bundle.min
|
#= require typeahead.bundle.min
|
||||||
#= require jquery.nested_attributes
|
#= require jquery.nested_attributes
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
$(document).on 'page:change', ->
|
$ ->
|
||||||
$('.js-contact-form').on 'restoreDefault', (e) ->
|
$('.js-contact-form').on 'restoreDefault', (e) ->
|
||||||
form = $(e.target)
|
form = $(e.target)
|
||||||
form.find('.js-ident-tip').hide()
|
form.find('.js-ident-tip').hide()
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
#= require nprogress
|
#= require nprogress
|
||||||
#= require nprogress-turbolinks
|
|
||||||
|
|
||||||
NProgress.configure
|
NProgress.configure
|
||||||
showSpinner: false
|
showSpinner: false
|
||||||
|
@ -16,7 +15,7 @@ NProgress.configure
|
||||||
$('#flash').find('div').html(msg)
|
$('#flash').find('div').html(msg)
|
||||||
$('#flash').show()
|
$('#flash').show()
|
||||||
|
|
||||||
$(document).on 'page:change', ->
|
$ ->
|
||||||
today = new Date()
|
today = new Date()
|
||||||
tomorrow = new Date(today)
|
tomorrow = new Date(today)
|
||||||
tomorrow.setDate(today.getDate() + 1)
|
tomorrow.setDate(today.getDate() + 1)
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
- else
|
- else
|
||||||
%title= t(:registrar_head_title)
|
%title= t(:registrar_head_title)
|
||||||
= csrf_meta_tags
|
= csrf_meta_tags
|
||||||
= stylesheet_link_tag 'registrar-manifest', media: 'all', 'data-turbolinks-track' => true
|
= stylesheet_link_tag 'registrar-manifest', media: 'all'
|
||||||
= javascript_include_tag 'registrar-manifest', 'data-turbolinks-track' => true
|
= javascript_include_tag 'registrar-manifest'
|
||||||
= favicon_link_tag 'favicon.ico'
|
= favicon_link_tag 'favicon.ico'
|
||||||
%body
|
%body
|
||||||
%nav.navbar.navbar-default.navbar-fixed-top
|
%nav.navbar.navbar-default.navbar-fixed-top
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue