app/assets/javascripts/cambium/admin/routers/router.js.coffee in cambium-1.2.3 vs app/assets/javascripts/cambium/admin/routers/router.js.coffee in cambium-1.3.0

- old
+ new

@@ -1,25 +1,16 @@ class App.Routers.Router extends Backbone.Router - initialize: => - @autoLoadClass() - - autoLoadClass: => - # This is a good place to automatically load classes that may be dependent - # on a page element, and not necessarily the route. - # - # For example: - # - # new App.Views.Nav if $('.main-nav').length > 0 - # - # Or, perhaps you need to load a class on every page. Do that, here, too, - # like this: - # + initialize: -> new App.Views.DefaultHelpers new App.Views.DropdownMenu if $('.dropdown-menu').length > 0 new App.Views.Pickadate + new App.Views.Editor + new App.Views.MediaPicker + new App.Views.ImageCropper + new App.Views.KeyboardShortcuts routes: - '': 'initHomePage' + 'admin': 'admin' - initHomePage: -> - console.log "Welcome to this awesome site, built using Cambium!" + admin: -> + true