Sha256: 982d5ee04449df9cd14fa9366b7698f0a9517bef9b8413dc88706f031c50f969

Contents?: true

Size: 640 Bytes

Versions: 3

Compression:

Stored size: 640 Bytes

Contents

Trestle.ready ->
  # This must be bound to an element beneath document so
  # that it is fired before any jquery_ujs events.
  root = $('body')

  root.confirmation
    rootSelector:   'body'
    selector:       '[data-toggle="confirm-delete"]'
    singleton:      true
    popout:         true
    title:          Trestle.i18n['admin.confirmation.title']
    btnOkIcon:      ''
    btnOkClass:     'btn-danger'
    btnOkLabel:     Trestle.i18n['admin.confirmation.delete'] || 'Delete'
    btnCancelIcon:  ''
    btnCancelClass: 'btn-default'
    btnCancelLabel: Trestle.i18n['admin.confirmation.cancel'] || 'Cancel'
    copyAttributes: ''

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
trestle-0.8.3 app/assets/javascripts/trestle/_confirmation.js.coffee
trestle-0.8.2 app/assets/javascripts/trestle/_confirmation.js.coffee
trestle-0.8.0 app/assets/javascripts/trestle/_confirmation.js.coffee