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

        .prop('checked', true).parent().addClass 'active'
      if selected.length
        $('#peakaboo-filter-clear').removeClass('disabled')


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) ->
