           @notify "This domain is already registered. Please try another domain."
           form.buttons.Create.hideLoader()
 
-          
+
 
 
           """

      title: msg

  addNewDomain:(formData)->
    
    {form}          = @modalTabs.forms
    domainInfo      = form.inputs.domain.getValue().split "."
    successCallback = @getOptions().successCallback  
  
    domain = domainInfo.slice(0, domainInfo.length-1).join ""
    tld = domainInfo[domainInfo.length-1]

    KD.remote.api.JDomain.count {domain: domain}, (err, count) =>
      if err then warn err
      
      if count > 0
        @notify "Someone has already added this domain."


            domain : domain
            owner  : KD.whoami()
            , (err, model) =>
              if not err
                new KDNotificationView
                  type  : "top"
                  title : "Your domain has been successfully saved."
