         .prop('checked', true).parent().addClass 'active'
       if selected.length
         $('#peakaboo-filter-clear').removeClass('disabled')
+  @autorun ->
+    resetFilters() unless Router.current().params[0]


  'click #peakaboo-filter-clear': (e) ->
    e.stopImmediatePropagation()
    $('#peakaboo-filter-clear').addClass 'disabled'
    $('.peakaboo-filter').removeClass 'active'
    $('.peakaboo-filter input').prop 'checked', false
    Router.go 'room_list'

Template.navbar.helpers


minZoom = 1
maxZoom = 4

resetFilters = ->
  $('#peakaboo-filter-clear').addClass 'disabled'
  $('.peakaboo-filter').removeClass 'active'
  $('.peakaboo-filter input').prop 'checked', false

Template.navbar.events
  'keyup input#search, click button#searchReset': (e) ->
