 
     $.pjax.defaults.scrollTo = false if $.pjax.defaults?
     $.pjax.defaults.timeout = false if $.pjax.defaults?
+
+    this.flash()
 
     $('.button.disabled').click ->
       return false

  modules: -> []

  initPage: ->
    that = this
    unless window.Turbolinks is undefined
      $(document).bind "page:fetch", ->
        that.Loading.show()

      $(document).bind "page:restore", ->
        that.Loading.hide()

      $(document).bind "page:change", ->
        $(window).scrollTop(0)

        try

      $('#loading').addClass('show')
    hide: ->
      $('#loading').removeClass('show')

  flash: ->
    if $(".flash").length > 0
      this.flash_time_out = setTimeout this.closeFlash, 5000
      $(".flash a.close").click(this.closeFlash)

  closeFlash: ->
    $('.flash .alert-box').fadeOut('fast')
    setTimeout (->
      $('.flash').slideUp('slow')
    ), 100
