You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
650 B
38 lines
650 B
11 years ago
|
#= require jquery
|
||
|
#= require jquery_ujs
|
||
|
#= require jquery.turbolinks
|
||
|
#= require turbolinks
|
||
|
#= require foundation
|
||
|
|
||
|
# FRONT END
|
||
|
|
||
|
# JS HANDLEBARS TEMPLATES
|
||
|
# require handlebars.runtime
|
||
|
|
||
|
# I18n
|
||
|
#= require i18n
|
||
|
#= require i18n/translations
|
||
|
|
||
|
# ALL THE REST
|
||
|
#= require_tree .
|
||
|
|
||
|
'use strict'
|
||
|
|
||
|
I18n.defaultLocale = '<%= I18n.default_locale %>'
|
||
|
I18n.locale = $('html').attr 'lang'
|
||
|
|
||
|
startSpinner = ->
|
||
|
$('#loading-spinner').show()
|
||
|
|
||
|
stopSpinner = ->
|
||
|
$('#loading-spinner').fadeOut()
|
||
|
|
||
|
# Turbolinks Spinner
|
||
|
document.addEventListener 'page:fetch', startSpinner
|
||
|
document.addEventListener 'page:receive', stopSpinner
|
||
|
|
||
|
alert('321');
|
||
|
|
||
|
$ ->
|
||
|
$(document).foundation();
|