| 20 | module.exports = (VictoryModal = (function () { |
| 21 | VictoryModal = class VictoryModal extends ModalView { |
| 22 | static initClass () { |
| 23 | this.prototype.id = 'level-victory-modal' |
| 24 | this.prototype.template = template |
| 25 | |
| 26 | this.prototype.subscriptions = |
| 27 | { 'ladder:game-submitted': 'onGameSubmitted' } |
| 28 | |
| 29 | this.prototype.events = { |
| 30 | 'click .sign-up-button': 'onClickSignupButton', |
| 31 | |
| 32 | // review events |
| 33 | 'mouseover .rating i' (e) { return this.showStars(this.starNum($(e.target))) }, |
| 34 | 'mouseout .rating i' () { return this.showStars() }, |
| 35 | 'click .rating i' (e) { |
| 36 | this.setStars(this.starNum($(e.target))) |
| 37 | return this.$el.find('.review').show() |
| 38 | }, |
| 39 | 'keypress .review textarea' () { return this.saveReviewEventually() } |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | constructor (options) { |
| 44 | super(options) |