 
       return
     else
-      if language == 'en'
+      if locale == 'en'
         alert 'Please enter a valid email adress'
       else
         alert 'Bitte gibt eine valide Email-Adresse ein'

  if $('.typeahead').length
    typeahead()
  if $('#invite_user').length
    inviteInitUser()
  return



  return


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

      span = document.createElement("span")
