   if $('.typeahead').length
     typeahead()
   if $('#invite_user').length
-    inviteInitUser()
+    sendLanguageWithButtonToCallback $('#invite_user'), inviteInitUser
   return
 
 


      deleteButton = document.createElement("input")
      deleteButton.type = 'RemoveButton'
      console.log language
      if language == 'en'
        deleteButton.value = 'Remove'
      else
        deleteButton.value = 'Entfernen'
      deleteButton.id = 'delete' + count
      deleteButton.name = 'deleteInvitationButton' + count


  return


inviteInitUser = (locale) ->
  count = 0
  $('body').on 'click', '#invite_user', ->
    email = $('#invitation_mail').val()
    if validateEmail(email)
      $('#invitation_mail').val('')

      span = document.createElement("span")
