         $dialog.find(".modal-footer .btn").first().focus()
 
     # Support for the Confirm mixin
-    $("body").on "click", "[data-confirm-message]:not(.disabled)", ->
+    $("body").on "click", "[data-confirm-message]:not(.disabled)", (event)->
 
       $this = $(this)
 

      # Cancel the original click event
      return false

    dom.onDocument "click", "a[data-confirm-message]:not(.disabled)", ->

      # Order of event handlers on an element is not predicatable. From testing, I found this could happen.
      # A bit ugly.
      return if @attr "data-update-zone"


# ## t5/core/confirm-click
#
# Support for the Tapestry Confirm mixin, and for running confirmation dialogs programmatically.
# Note that this does not function correctly when Prototype is present.

define ["jquery", "./events", "./dom", "bootstrap/modal"],
