Fixed a couple errors.

This commit is contained in:
Nick Winter 2014-08-15 10:27:36 -07:00
parent 7db821309a
commit f1a9848366
3 changed files with 11 additions and 9 deletions
app
styles
views
editor/level/thangs
kinds

View file

@ -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

View file

@ -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

View file

@ -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