mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-25 16:47:58 -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', {}
|