     return # Make sure CoffeeScript does not return anything
 
   'click .newsletter, focus .newsletter, keypress .newsletter': (e, template) ->
-    e.newsletterDialogBoxEvent = true
+    e.dialogBoxEvent = true
     return # Make sure CoffeeScript does not return anything
 
 Template.newsletter.displayed = ->

    return # Make sure CoffeeScript does not return anything

  'click .invite-button, focus .invite-button, keypress .invite-button': (e, template) ->
    e.inviteDialogBoxEvent = true
    return # Make sure CoffeeScript does not return anything

Template.inviteDialog.displayed = ->

    e.preventDefault()
    Session.set 'newsletterActive', true
    Session.set 'newsletterError', null
    $(template.findAll '#newsletter-dialog-email').val(Meteor.person()?.email() or '')

    Meteor.setTimeout =>
      $(template.findAll '#newsletter-dialog-email').focus()
