Sha256: 2a1f70004f40e701a5e3eb9c6cae14d5830e419a09041dbc75fc8f253c9c4c76

Contents?: true

Size: 212 Bytes

Versions: 10

Compression:

Stored size: 212 Bytes

Contents

$.rails.allowAction = (element) ->
  message = element.data("confirm")
  return true unless message
  bootbox.confirm "<h3>#{message}</h3>", (answer) ->
    element.data('confirm', null).click() if answer
  false

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ab_admin-0.11.0 app/assets/javascripts/ab_admin/core/confirmation.js.coffee
ab_admin-0.10.0 app/assets/javascripts/ab_admin/core/confirmation.js.coffee
ab_admin-0.9.0 app/assets/javascripts/ab_admin/core/confirmation.js.coffee
ab_admin-0.8.3 app/assets/javascripts/ab_admin/core/confirmation.js.coffee
ab_admin-0.8.2 app/assets/javascripts/ab_admin/core/confirmation.js.coffee
ab_admin-0.8.1 app/assets/javascripts/ab_admin/core/confirmation.js.coffee
ab_admin-0.8.0 app/assets/javascripts/ab_admin/core/confirmation.js.coffee
ab_admin-0.7.0 app/assets/javascripts/ab_admin/core/confirmation.js.coffee
ab_admin-0.6.1 app/assets/javascripts/ab_admin/core/confirmation.js.coffee
ab_admin-0.6.0 app/assets/javascripts/ab_admin/core/confirmation.js.coffee