Sha256: c9f653dd80379056c87c20ffb87ad340350ffe47be7c7127e2c80e1172272e7e

Contents?: true

Size: 733 Bytes

Versions: 16

Compression:

Stored size: 733 Bytes

Contents

Dashboard.reopen
  HeaderView: Ember.View.extend
    templateName: 'layouts/header'

    didInsertElement: ->
      $('.dropdown-toggle').dropdown()

      #Enable sidebar toggle
      $("[data-toggle='offcanvas']").click (e) ->
        e.preventDefault()

        #If window is small enough, enable sidebar push menu
        if $(window).width() <= 992
          $(".row-offcanvas").toggleClass "active"
          $(".left-side").removeClass "collapse-left"
          $(".right-side").removeClass "strech"
          $(".row-offcanvas").toggleClass "relative"
        else

          #Else, enable content streching
          $(".left-side").toggleClass "collapse-left"
          $(".right-side").toggleClass "strech"
        return

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dune-dashboard-1.1.5 app/assets/javascripts/views/layouts/header.coffee
dune-dashboard-1.1.4 app/assets/javascripts/views/layouts/header.coffee
dune-dashboard-1.1.3 app/assets/javascripts/views/layouts/header.coffee
dune-dashboard-1.1.2 app/assets/javascripts/views/layouts/header.coffee
dune-dashboard-1.1.1 app/assets/javascripts/views/layouts/header.coffee
dune-dashboard-1.1.0 app/assets/javascripts/views/layouts/header.coffee
dune-dashboard-1.0.9 app/assets/javascripts/views/layouts/header.coffee
dune-dashboard-1.0.8 app/assets/javascripts/views/layouts/header.coffee
dune-dashboard-1.0.7 app/assets/javascripts/views/layouts/header.coffee
dune-dashboard-1.0.6 app/assets/javascripts/views/layouts/header.coffee
dune-dashboard-1.0.5 app/assets/javascripts/views/layouts/header.coffee
dune-dashboard-1.0.4 app/assets/javascripts/views/layouts/header.coffee
dune-dashboard-1.0.3 app/assets/javascripts/views/layouts/header.coffee
dune-dashboard-1.0.2 app/assets/javascripts/views/layouts/header.coffee
dune-dashboard-1.0.1 app/assets/javascripts/views/layouts/header.coffee
dune-dashboard-1.0.0 app/assets/javascripts/views/layouts/header.coffee