 kd                   = require 'kd'
 KDView               = kd.View
+KDSelectBox          = kd.SelectBox
+KDCustomHTMLView     = kd.CustomHTMLView
+KDHitEnterInputView  = kd.HitEnterInputView
 whoami               = require 'app/util/whoami'
-KDSelectBox          = kd.SelectBox
 MemberItemView       = require './memberitemview'
-KDCustomHTMLView     = kd.CustomHTMLView
-KDListViewController = kd.ListViewController
-KDHitEnterInputView  = kd.HitEnterInputView
 remote               = require('app/remote').getInstance()
-
+KodingListController = require 'app/kodinglist/kodinglistcontroller'
 
 module.exports = class TeamMembersCommonView extends KDView
 


    @createSearchView()
    @createListController()
    @fetchMembers()


  createSearchView: ->

      callback      : @bound 'search'

    @searchContainer.addSubView @searchInput = new KDHitEnterInputView
      type          : 'text'
      placeholder   : @getOptions().searchInputPlaceholder
      callback      : @bound 'search'

    @searchContainer.addSubView @searchClear = new KDCustomHTMLView
      tagName       : 'span'
      partial       : 'clear'
      cssClass      : 'clear-search hidden'
      click         : =>
        @searchInput.setValue ''
        @search()
        @searchClear.hide()
