| 27 | module.exports = (ChatEditView = (function () { |
| 28 | ChatEditView = class ChatEditView extends RootView { |
| 29 | static initClass () { |
| 30 | this.prototype.id = 'editor-chat-edit-view' |
| 31 | this.prototype.template = template |
| 32 | |
| 33 | this.prototype.events = { |
| 34 | 'click #save-button': 'onClickSaveButton', |
| 35 | 'click #i18n-button': 'onPopulateI18N', |
| 36 | 'click #delete-button': 'confirmDeletion', |
| 37 | 'click #fix-button': 'onFix', |
| 38 | 'click #add-code-button': 'onAddCode', |
| 39 | 'click #regenerate-message-button': 'onRegenerateMessage' |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | constructor (options, chatID) { |
| 44 | super(options) |