 
   createSearchView: ->
     @addSubView @searchContainer = new KDCustomHTMLView
-      cssClass: 'search hidden'
+      cssClass: 'search'
       partial : '<span class="label">Sort by</span>'
 
     @searchContainer.addSubView @searchInput = new KDHitEnterInputView

    @listController.on 'LazyLoadThresholdReached', @bound 'fetchChannels'


  fetchChannels: ->

    return if @isFetching

    @isFetching = yes

    selector = @query or ''
    options  =
      limit  : @getOptions().itemLimit
      sort   : { timestamp: -1 }

      skip   : @skip

    kd.singletons.socialapi.channel.searchTopics {name: "deneme"}, (err, channels) =>
      if err
        @listController.lazyLoader?.hide()
        return kd.warn err
      
      console.log channels
      @listChannels channels
      @isFetching = no


  listChannels: (channels) ->


    @listController.removeAllItems()
    @listController.lazyLoader.show()
    @fetchChannels @query
    console.log @query