Sha256: e48d007010977775fcd8a327f4b9470ecf8e55d1c39adf73eea793432c7b4633

Contents?: true

Size: 475 Bytes

Versions: 4

Compression:

Stored size: 475 Bytes

Contents

class Admin.Routers.Router extends Backbone.Router

  initialize: =>
    @autoLoad()

  autoLoad: =>
    new Admin.Views.Wysiwyg if $(".wysihtml5").length > 0
    new Admin.Views.Publishable if $("[class*=_active_date]").length > 0
    new Admin.Views.InitCounter if $('input').length > 0
    new Admin.Views.Paginator if $('table').length > 0
    new Admin.Views.DropdownToggle if $('.dropdown-toggle').length > 0
    new Admin.Views.Accordion if $('.accordion').length > 0

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cambium-0.2.1 lib/generators/cambium/templates/app/assets/javascripts/admin/routers/router.js.coffee
cambium-0.2.0 lib/generators/cambium/templates/app/assets/javascripts/admin/routers/router.js.coffee
cambium-0.0.2 lib/generators/cambium/templates/app/assets/javascripts/admin/backbone/routers/router.js.coffee
cambium-0.0.1 lib/generators/cambium/templates/app/assets/javascripts/admin/backbone/routers/router.js.coffee