Retrospring/app/assets/javascripts/application.js.erb.coffee

26 lines
541 B
CoffeeScript
Raw Normal View History

2014-11-10 09:19:04 -08:00
#= require jquery
#= require jquery_ujs
2014-11-11 09:16:09 -08:00
#= require jquery.turbolinks
2014-11-10 09:19:04 -08:00
#= require turbolinks
#= require bootstrap
#= require nprogress
#= require nprogress-turbolinks
#= require growl
2014-12-21 13:29:52 -08:00
#= require cheet
2014-11-10 09:19:04 -08:00
#= require_tree .
NProgress.configure
showSpinner: false
2014-12-08 06:42:34 -08:00
window.showNotification = (text, success=true) ->
args =
title: if success then "Success!" else "Uh-oh..."
message: text
if success
$.growl.notice args
else
$.growl.error args
2014-11-11 09:02:59 -08:00
2014-11-10 09:19:04 -08:00
$(document).on "click", "button#create-account", ->
Turbolinks.visit "/sign_up"