mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 20:46:03 +01:00
14eb6b035b
This reverts commit 3574993746
.
33 lines
692 B
CoffeeScript
33 lines
692 B
CoffeeScript
#= require jquery
|
|
#= require jquery_ujs
|
|
#= require jquery.turbolinks
|
|
#= require turbolinks
|
|
#= require bootstrap
|
|
#= require nprogress
|
|
#= require nprogress-turbolinks
|
|
#= require growl
|
|
#= require cheet
|
|
#= require jquery.guillotine
|
|
#= require sweet-alert
|
|
#= require_tree .
|
|
|
|
NProgress.configure
|
|
showSpinner: false
|
|
|
|
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
|
|
|
|
$(document).on "click", "button#create-account", ->
|
|
Turbolinks.visit "/sign_up"
|
|
|
|
_ready = ->
|
|
sweetAlertInitialize()
|
|
|
|
$(document).ready _ready
|
|
$(document).on 'page:load', _ready
|