codecombat/app/views/play/level/modal/infinite_loop_modal.coffee

12 lines
540 B
CoffeeScript
Raw Normal View History

2014-07-17 20:22:26 -04:00
ModalView = require 'views/kinds/ModalView'
2014-01-03 13:32:13 -05:00
template = require 'templates/play/level/modal/infinite_loop'
2014-07-17 20:22:26 -04:00
module.exports = class InfiniteLoopModal extends ModalView
2014-01-03 13:32:13 -05:00
id: '#infinite-loop-modal'
template: template
events:
'click #restart-level-infinite-loop-retry-button': -> Backbone.Mediator.publish 'tome:cast-spell'
'click #restart-level-infinite-loop-confirm-button': -> Backbone.Mediator.publish 'restart-level'
2014-04-14 17:49:38 -04:00
'click #restart-level-infinite-loop-comment-button': -> Backbone.Mediator.publish 'tome:comment-my-code'