mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 18:15:52 -05:00
29 lines
670 B
CoffeeScript
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()
|