| 19 | module.exports = (EditView = (function () { |
| 20 | EditView = class EditView extends RootView { |
| 21 | static initClass () { |
| 22 | this.prototype.id = 'editor-edit-view' |
| 23 | this.prototype.template = template |
| 24 | |
| 25 | this.prototype.resource = null |
| 26 | this.prototype.schema = null |
| 27 | this.prototype.redirectPathOnSuccess = null // id or slug will be automatically added |
| 28 | this.prototype.filePath = null |
| 29 | this.prototype.resourceName = null // used in breadcrumbs |
| 30 | this.prototype.treemaOptions = null |
| 31 | |
| 32 | this.prototype.events = { |
| 33 | 'click #save-button': 'onClickSaveButton', |
| 34 | 'click #i18n-button': 'onPopulateI18N' |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | onLoaded () { |
| 39 | super.onLoaded() |