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
1 changed files with 2 additions and 0 deletions

View File

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