mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-01 07:40:22 -04:00
Fixed a couple errors.
This commit is contained in:
parent
7db821309a
commit
f1a9848366
3 changed files with 11 additions and 9 deletions
app
|
@ -26,9 +26,10 @@
|
|||
.lower-titles
|
||||
text-align: center
|
||||
|
||||
img
|
||||
border-radius: 20px
|
||||
@include transition( (background-color 0.2s linear, box-shadow 0.2s linear) )
|
||||
&:hover
|
||||
background-color: #7abee3
|
||||
box-shadow: 0 0 20px #7abee3
|
||||
.logo-row, .community-columns
|
||||
img
|
||||
border-radius: 20px
|
||||
@include transition( (background-color 0.2s linear, box-shadow 0.2s linear) )
|
||||
&:hover
|
||||
background-color: #7abee3
|
||||
box-shadow: 0 0 20px #7abee3
|
||||
|
|
|
@ -441,7 +441,7 @@ module.exports = class ThangsTabView extends CocoView
|
|||
else # Mediator event
|
||||
window.thangsTreema = @thangsTreema
|
||||
thangData = @thangsTreema.get "id=#{e.thangID}"
|
||||
@editThangView = new LevelThangEditView thangData: thangData, level: @level, world: @world
|
||||
@editThangView = new LevelThangEditView thangData: thangData, level: @level, world: @world, supermodel: @supermodel # supermodel needed for checkForMissingSystems
|
||||
@insertSubView @editThangView
|
||||
@$el.find('.thangs-column').hide()
|
||||
Backbone.Mediator.publish 'level:view-switched', e
|
||||
|
|
|
@ -6,6 +6,7 @@ CocoView = require './CocoView'
|
|||
{logoutUser, me} = require('lib/auth')
|
||||
locale = require 'locale/locale'
|
||||
|
||||
Achievement = require 'models/Achievement'
|
||||
AchievementPopup = require 'views/achievements/AchievementPopup'
|
||||
utils = require 'lib/utils'
|
||||
|
||||
|
@ -19,7 +20,7 @@ filterKeyboardEvents = (allowedEvents, func) ->
|
|||
|
||||
module.exports = class RootView extends CocoView
|
||||
showBackground: true
|
||||
|
||||
|
||||
events:
|
||||
'click #logout-button': 'logoutAccount'
|
||||
'change .language-dropdown': 'onLanguageChanged'
|
||||
|
@ -71,7 +72,7 @@ module.exports = class RootView extends CocoView
|
|||
c = super()
|
||||
c.showBackground = @showBackground
|
||||
c
|
||||
|
||||
|
||||
afterRender: ->
|
||||
super(arguments...)
|
||||
@chooseTab(location.hash.replace('#', '')) if location.hash
|
||||
|
|
Loading…
Add table
Reference in a new issue