codecombat/app/views/play/modal/PlaySettingsModal.coffee
Imperadeiro98 8e8a3103d5 Refactor to use view in template for issue #3138
This removes getRenderData from: CareersView, SaveCampaignModal,
InfiniteLoopModal, SpellListEntryThangsView, SaveLoadView,
PlaySettingsModal and JobProfileCodeModal.
2015-11-09 21:29:27 +00:00

24 lines
565 B
CoffeeScript

ModalView = require 'views/core/ModalView'
template = require 'templates/play/modal/play-settings-modal'
module.exports = class PlaySettingsModal extends ModalView
className: 'modal fade play-modal'
template: template
modalWidthPercent: 90
id: 'play-settings-modal'
#instant: true
#events:
# 'change input.select': 'onSelectionChanged'
constructor: (options) ->
super options
afterRender: ->
super()
return unless @supermodel.finished()
@playSound 'game-menu-open'
onHidden: ->
super()
@playSound 'game-menu-close'