mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 16:17:57 -05:00
16 lines
483 B
CoffeeScript
16 lines
483 B
CoffeeScript
ModalView = require 'views/core/ModalView'
|
|
template = require 'templates/play/level/modal/reload-level-modal'
|
|
|
|
module.exports = class ReloadLevelModal extends ModalView
|
|
id: '#reload-level-modal'
|
|
template: template
|
|
|
|
events:
|
|
'click #restart-level-confirm-button': 'onClickRestart'
|
|
|
|
onClickRestart: (e) ->
|
|
@playSound 'menu-button-click'
|
|
if key.shift
|
|
Backbone.Mediator.publish 'level:restart', {}
|
|
else
|
|
Backbone.Mediator.publish 'tome:reload-code', {}
|