                 style         : "modal-cancel"
                 callback      : -> modal.destroy()
 
+    {subject, message} = modal.modalTabs.forms.sendForm.inputs
     toField = modal.modalTabs.forms.sendForm.fields.to
 
     recipientsWrapper = new KDView

  sendMessage:(messageDetails, callback)->
    if KD.isGuest()
      return new KDNotificationView
        title : "Sending private message for guests not allowed"

    KD.remote.api.JPrivateMessage.create messageDetails, callback



    toField.addSubView recipient.getView()
    toField.addSubView recipientsWrapper
    if users
      recipient.setDefaultValue users
      
      if users.length is 1
        toField.hide()

        toName = KD.utils.getFullnameFromAccount users.first
        myName = KD.utils.getFullnameFromAccount()

        subject.setValue "Private message from #{myName}"
        modal.setTitle "#{modal.getOption('title')} to <b>#{toName}</b>"

      message.$().focus()
    else
      recipient.getView().$input().focus()

  loadView:(mainView)->
    mainView.createCommons()
