mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 16:17:57 -05:00
30 lines
No EOL
740 B
CoffeeScript
30 lines
No EOL
740 B
CoffeeScript
VersionsView = require 'views/kinds/VersionsView'
|
|
ModalView = require 'views/kinds/ModalView'
|
|
template = require 'templates/editor/level/versions'
|
|
|
|
module.exports = class ModalVersionsView extends VersionsView
|
|
id: 'version-history-modal'
|
|
url: "/db/level/"
|
|
page: "level"
|
|
template: template
|
|
|
|
className: "modal fade"
|
|
closeButton: true
|
|
closesOnClickOutside: true
|
|
modalWidthPercent: null
|
|
|
|
shortcuts:
|
|
'esc': 'hide'
|
|
|
|
constructor: (options, @ID) ->
|
|
super options, ID, require 'models/Level'
|
|
_.extend @, ModalView
|
|
ModalView.prototype.constructor options
|
|
|
|
getRenderData: (context={}) ->
|
|
context = super(context)
|
|
context.closeButton = true
|
|
context
|
|
|
|
hide: ->
|
|
@$el.removeClass('fade').modal "hide" |