Sha256: 91cb2dda422ea2fa8a86f2920315cbf6bb27e7b0da4b187592cfa17dc0a313b0

Contents?: true

Size: 765 Bytes

Versions: 2

Compression:

Stored size: 765 Bytes

Contents

Trestle.ready(function() {
  // This must be bound to an element beneath document so
  // that it is fired before any jquery_ujs events.
  var root = $('body');

  // Ensure it is only initialized once
  if (root.data('bs.confirmation')) return;

  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

2 entries across 2 versions & 1 rubygems

Version Path
trestle-0.8.5 app/assets/javascripts/trestle/_confirmation.js
trestle-0.8.4 app/assets/javascripts/trestle/_confirmation.js