All Downloads are FREE. Search and download functionalities are using the official Maven repository.

static.js.router.js Maven / Gradle / Ivy

The newest version!
/* global Backbone */
/*eslint-disable no-new */
var app = app || {}

;(function () {
  var GobblinRouter = Backbone.Router.extend({
    routes: {
      '': 'index',
      'job/:name': 'job',
      'job-details/:id': 'jobDetails'
    },

    index: function () {
      new app.OverView()
    },
    job: function (name) {
      new app.JobView(name)
    },
    jobDetails: function (id) {
      new app.JobExecutionView(id)
    }
  })

  app.gobblinRouter = new GobblinRouter()
  Backbone.history.start()
})()




© 2015 - 2025 Weber Informatics LLC | Privacy Policy