         form = ($ '<form>', {action : action, method : 'POST'})
         form.submit (event) =>
             do event.preventDefault
-            cb event
+            cb ($ event.currentTarget)
             no
         html = """
             <small>#{label}</small>

                    roomurl : window.location.href
                    from : window.Voicious.currentUser.name
                success : () =>
                    ((form.parents '.popover').prev 'li').popover 'destroy'
            $.ajax options
        {
            title : "Share this room by email"
            html : yes
            content : @doForm '/shareroom',
            'E-mail addresses (comma separated):', 'Share', cb
        }

    # Send bug report.
    reportBug : () =>
        {
            title : 'Report a bug'
            html : yes
            content : @doForm '/report', 'Explain the bug:', 'Report', () =>
            container : 'body'
        }




    sendByMail : (event) =>
        cb = (f) =>
            mails = do (do (f.find 'textarea').first).val
            options =
                type : f.attr 'method'
                url : f.attr 'action'
