codecombat/app/views/play/level/modal/editor_config_modal.coffee
2014-03-14 00:54:06 +01:00

29 lines
670 B
CoffeeScript

View = require 'views/kinds/ModalView'
template = require 'templates/play/level/modal/editor_config'
{me} = require('lib/auth')
module.exports = class EditorConfigModal extends View
id: 'level-editor-config-modal'
template: template
events:
'click textarea': 'onClickLink'
'change #invisibles': 'updateInvisiblesSelection'
'change #keyBindings': 'updateKeyBindingsSelection'
'change #indentGuides': 'updateIndentGuides'
constructor: (options) ->
super(options)
getRenderData: ->
c = super()
c.keyBindings = 'vim'
c.invisibles = false
c.indentGuides = true
c
afterRender: ->
super()
destroy: ->
super()