| 21 | module.exports = (TasksTabView = (function () { |
| 22 | TasksTabView = class TasksTabView extends CocoView { |
| 23 | static initClass () { |
| 24 | this.prototype.id = 'editor-level-tasks-tab-view' |
| 25 | this.prototype.className = 'tab-pane' |
| 26 | this.prototype.template = template |
| 27 | this.prototype.events = { |
| 28 | 'click .task-row': 'onClickTaskRow', |
| 29 | 'click .task-input': 'onClickTaskInput', |
| 30 | 'click .start-edit': 'onClickStartEdit', |
| 31 | 'click #create-task': 'onClickCreateTask', |
| 32 | 'keydown #cur-edit': 'onKeyDownCurEdit', |
| 33 | 'blur #cur-edit': 'onBlurCurEdit' |
| 34 | } |
| 35 | |
| 36 | this.prototype.subscriptions = |
| 37 | { 'editor:level-loaded': 'onLevelLoaded' } |
| 38 | } |
| 39 | |
| 40 | applyTaskName (_task, _input) { |
| 41 | const name = _input.value |