| 13 | module.exports = (ConfirmModal = (function () { |
| 14 | ConfirmModal = class ConfirmModal extends ModalView { |
| 15 | static initClass () { |
| 16 | this.prototype.id = 'confirm-modal' |
| 17 | this.prototype.template = template |
| 18 | this.prototype.closeButton = true |
| 19 | this.prototype.closeOnConfirm = true |
| 20 | |
| 21 | this.prototype.events = { |
| 22 | 'click #decline-button': 'onClickDecline', |
| 23 | 'click #confirm-button': 'onClickConfirm' |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | initialize (options) { |
| 28 | return _.assign(this, _.pick(options, 'title', 'body', 'decline', 'confirm', 'closeOnConfirm', 'closeButton')) |