     @listController.removeAllItems()
     @listController.lazyLoader.show()
     @searchChannels @query
-    console.log @query

  createSearchView: ->
    @addSubView @searchContainer = new KDCustomHTMLView
      cssClass: 'search'
      partial : '<span class="label">Search</span>'

    @searchContainer.addSubView @searchInput = new KDHitEnterInputView
      type        : 'text'

  searchChannels:(query = "") ->
    
    return if @isFetching
    @isFetching = yes

    options  =
      name                  : query
      limit                 : @getOptions().itemLimit
      skip                  : @searchSkip
      showModerationNeeded  : true
      type                  : @getOptions().typeConstant or= "topic"

    kd.singletons.socialapi.channel.searchTopics options , (err, channels) =>
      @isFetching = no
      
      if err
        @listController.lazyLoader?.hide()
        return kd.warn err
      
      @listChannels channels
      

  listChannels: (channels) ->

