     'click .sort-btn'          : 'setSort'
     'click .dir-btn'           : 'setSortDir'
     'click .search-page-btn'   : 'setPage'
+    'click .search-type'       : 'search'
 
   ### More involved setups run by the initialize method ###
 


  initialize: (options) ->
    _.extend @options, _.pick(options, 'el')

    @setupSelect()
    @setupSearch()


    @$('.sort-btn .icon-ok').remove()
    @$(e.target).append @make 'i', class: 'icon-ok'
    @$('#sort-btn span#sort-by').html @options.sort
    console.log("SEARCHING")
    @search.run null,
      order: @options.sort
      direction: @options.sortDir
