Activation de la barre de progression de turbolinks

This commit is contained in:
echarp 2014-11-09 17:47:59 +01:00
parent 94a719bc0d
commit ab4db4a761

View File

@ -34,6 +34,8 @@ $.webshims.setOptions 'forms-ext',
'classes': 'show-yearbtns hide-btnrow show-uparrow' 'classes': 'show-yearbtns hide-btnrow show-uparrow'
$.webshims.polyfill 'forms forms-ext' $.webshims.polyfill 'forms forms-ext'
Turbolinks.enableProgressBar()
$(document).on 'page:fetch submit', -> $(document).on 'page:fetch submit', ->
$('em#loading').fadeIn('slow') $('em#loading').fadeIn('slow')
$(document).on 'page:change ready', -> $(document).on 'page:change ready', ->