       iconOnly  : yes
       iconClass : "plus"
       callback  : ()=> list.showAddModal()
-        
+
     list.on "DeleteDatabaseSubmitted", (listItem)=> @deleteDatabase listItem
     list.on "UpdateDatabaseSubmitted", (listItem, formdata)=> @updateDatabase listItem, formdata
     list.on "AddDatabaseSubmitted", => @addDatabase()
 
     @on "DatabaseDeleted", (listItem)=> list.removeItem listItem
     @on "DatabaseUpdated", (listItem)=>
-    @on "DatabaseAdded", (itemData)=> 
+    @on "DatabaseAdded", (itemData)=>
       list.addItem itemData, null, {type : "slideDown", duration : 100}
       new KDModalView
         title   : "New Database Information"


    data = listItem.getData()
    log "Requested DB Type", data
    
    @talkToKite
      toDo          : @commands[data.dbType].update
      withArgs      :

    #   unless err
    #     log "added",jr,f
    #     jr.type = f.type
    #     itemView = @itemClass delegate:@,jr
    #     @addItemView itemView
    #     @modal.destroy()
    #   else
    #     log "failed to add.",err

  # deleteDatabase:(listItem)=>
  #
  #   jr = listItem.getData()
  #   jr.remove (err)=>
  #     if err
  #       log "failed to delete",err
  #     else
  #       @removeListItem @_listItemToBeUpdated
  #       @modal.destroy()
  #
  # updateDatabase:(listItem, formData)=>
  #
  #   jr = listItem.getData()
  #   jr.title  = f.title  ? jr.title
  #   jr.color  = f.color  ? jr.color
  #   jr.users[0].password = f.password
  #
  #   jr.update (err)->
  #     unless err
  #       log "updated",jr
  #     else
  #       log "failed to update",err
  #
  #   @modal.destroy()


