Sha256: b67070437ea9133436d0b1fa511d0aef07836ba0b925a11ec9555665eae7357e

Contents?: true

Size: 522 Bytes

Versions: 6

Compression:

Stored size: 522 Bytes

Contents

namespace "SensuDashboard", (exports) ->

  class Application

    constructor: ->
      $.ajaxSetup(cache: false)

      bootstrapper = new SensuDashboard.Bootstrapper
        success: =>
          @boot()

        error: =>
          new SensuDashboard.Views.Error
          toastr.error("Error during bootstrap. Is Sensu API running?"
            , "Bootstrap Error"
            , { positionClass: "toast-bottom-right" })

    boot: ->
      Backbone.history.start()

  exports.App = new Application() # Initialize app

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sensu-dashboard-0.10.4 lib/sensu-dashboard/assets/javascripts/application.coffee
sensu-dashboard-0.10.3 lib/sensu-dashboard/assets/javascripts/application.coffee
sensu-dashboard-0.10.2 lib/sensu-dashboard/assets/javascripts/application.coffee
sensu-dashboard-0.10.1 lib/sensu-dashboard/assets/javascripts/application.coffee
sensu-dashboard-0.10.0 lib/sensu-dashboard/assets/javascripts/application.coffee
sensu-dashboard-0.9.9 lib/sensu-dashboard/assets/javascripts/application.coffee