| 14 | module.exports = (ProgressView = (function () { |
| 15 | ProgressView = class ProgressView extends CocoView { |
| 16 | static initClass () { |
| 17 | // TODO: Clean up what was moved to CourseVictoryComponent |
| 18 | |
| 19 | this.prototype.id = 'progress-view' |
| 20 | this.prototype.className = 'modal-content' |
| 21 | this.prototype.template = require('app/templates/play/level/modal/progress-view') |
| 22 | |
| 23 | this.prototype.events = { |
| 24 | 'click #done-btn': 'onClickDoneButton', |
| 25 | 'click #next-level-btn': 'onClickNextLevelButton', |
| 26 | 'click #start-challenge-btn': 'onClickStartChallengeButton', |
| 27 | 'click #map-btn': 'onClickMapButton', |
| 28 | 'click #ladder-btn': 'onClickLadderButton', |
| 29 | 'click #publish-btn': 'onClickPublishButton', |
| 30 | 'click #share-level-btn': 'onClickShareLevelButton' |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | initialize (options) { |
| 35 | this.level = options.level |