| 21 | module.exports = (PatchModal = (function () { |
| 22 | PatchModal = class PatchModal extends ModalView { |
| 23 | static initClass () { |
| 24 | this.prototype.id = 'patch-modal' |
| 25 | this.prototype.template = template |
| 26 | this.prototype.plain = true |
| 27 | this.prototype.modalWidthPercent = 60 |
| 28 | this.prototype.instant = true |
| 29 | |
| 30 | this.prototype.events = { |
| 31 | 'click #withdraw-button': 'withdrawPatch', |
| 32 | 'click #reject-button': 'rejectPatch', |
| 33 | 'click #accept-button': 'onAcceptPatch', |
| 34 | 'click #accept-save-button': 'onAcceptAndSavePatch' |
| 35 | } |
| 36 | |
| 37 | this.prototype.shortcuts = { |
| 38 | 'a, shift+a': 'acceptPatch', |
| 39 | r: 'rejectPatch' |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | constructor (patch, targetModel, options) { |
| 44 | super(options) |