Skip to content

Commit

Permalink
Fix sidebar so it disappears when switching from tiles to fill
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmire committed Apr 2, 2012
1 parent b1c307c commit 7f410f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/javascripts/editor/core.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ define 'editor.core', ->
@viewport.getMapLayers().append($layer)
$(document.body).addClass("editor-layer-#{layer}")

@$sidebar.find("> div[data-layer=#{layer}").show()
@$sidebar.find("> div[data-layer=#{layer}]").show()

m = "activate_#{layer}_layer"
console.log "viewport: activating #{layer} layer"
Expand All @@ -215,7 +215,7 @@ define 'editor.core', ->
.removeClass('editor-layer-selected')
$(document.body).removeClass("editor-layer-#{layer}")

@$sidebar.find("> div[data-layer=#{layer}").hide()
@$sidebar.find("> div[data-layer=#{layer}]").hide()

m = "deactivate_#{layer}_layer"
if layer
Expand Down
4 changes: 2 additions & 2 deletions public/javascripts/app/editor/core.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7f410f8

Please sign in to comment.