     mobileFilterSwitch = $('.filter-form__switch')
     filterForm = $('.filter-form')
 
+    # Detect if in mediaquery 's'
 
     if ($(window).width() <= 440)
 
       mobileFilterSwitch.show()
       filterForm.addClass 'is--hidden'
+
+      # Click event
 
       mobileFilterSwitch.on 'click', ->
         filterForm.toggleClass 'is--hidden'


      sessionStorage.setItem("offer_filter_open", "false")

    if !$('.filter-form__expander').length
      $filterForm.prepend '<div class="filter-form__expander" role="button" aria-expanded="false">' + expandLabel + '</div>'


    collapseLabel = I18n.t 'js.less_filter_options'
    offer_filter_open = sessionStorage.getItem("offer_filter_open")

    # Detect or set state: offer_filter_open
    unless offer_filter_open == "true"
      $filterForm
              .addClass 'filter-form--isCollapsed'
