| 17 | module.exports = (ModalView = (function () { |
| 18 | ModalView = class ModalView extends CocoView { |
| 19 | static initClass () { |
| 20 | this.prototype.className = 'modal fade' |
| 21 | this.prototype.closeButton = true |
| 22 | this.prototype.closesOnClickOutside = true |
| 23 | this.prototype.modalWidthPercent = null |
| 24 | this.prototype.plain = false |
| 25 | this.prototype.instant = false |
| 26 | this.prototype.template = require('app/templates/core/modal-base') |
| 27 | this.prototype.trapsFocus = true |
| 28 | |
| 29 | this.prototype.events = { |
| 30 | 'click a': 'toggleModal', |
| 31 | 'click button': 'toggleModal', |
| 32 | 'click li': 'toggleModal', |
| 33 | 'click [data-i18n]': 'onClickTranslatedElement', |
| 34 | } |
| 35 | |
| 36 | this.prototype.shortcuts = |
| 37 | { esc: 'onEsc' } |
| 38 | |
| 39 | this.prototype.subscriptions = |
| 40 | {} |
| 41 | } |
| 42 | |
| 43 | constructor (options) { |
| 44 | super(...arguments) |