mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-29 10:35:51 -05:00
16 lines
No EOL
596 B
CoffeeScript
16 lines
No EOL
596 B
CoffeeScript
RootView = require 'views/core/RootView'
|
|
template = require 'templates/admin/design-elements-view'
|
|
|
|
module.exports = class DesignElementsView extends RootView
|
|
id: 'design-elements-view'
|
|
template: template
|
|
|
|
afterInsert: ->
|
|
super()
|
|
# hack to get hash links to work. Make this general?
|
|
hash = document.location.hash
|
|
document.location.hash = ''
|
|
setTimeout((-> document.location.hash = hash), 10)
|
|
@$('#modal-2').find('.background-wrapper').addClass('plain')
|
|
setTimeout((=> @$('#tooltip').tooltip('show')), 20)
|
|
setTimeout((=> @$('#popover').popover('show')), 20) |