 #          %span.label.label-danger Warning
 #          This cannot be undone.
 #        .modal-footer
-#          %button.btn.btn-danger.ok Yes, delete my account
+#          %button.btn.btn-danger{data: {confirm: 'true', dismiss: 'modal'} Yes, delete my account
 #          %button.btn.btn-default{data: {dismiss: 'modal'}} Cancel
 
 Confirm =

      $.rails.allowAction = @allowAction

  showModal: ($modal, elem) ->
    $modal.modal()
    $modal.find('.btn.ok').on('click', => @confirmed(elem))

$ -> Confirm.initRailsHook()

#
# Rails 3+ with Twitter Bootstrap 2+ or Zurb Foundation 5+ Confirm Dialog Modal
# version 0.3
# (c) 2014 joe johnston [joe@simple10.com]
# released under the MIT license
#
# Dependencies:
