mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Merge pull request #1113 from rubenvereecken/issue1110
One line fix for issue #1110. Thang search bar works again.
This commit is contained in:
commit
1f32c1c8a1
1 changed files with 1 additions and 0 deletions
|
@ -250,6 +250,7 @@ module.exports = class ThangsTabView extends View
|
|||
# @thangsTreema.deselectAll()
|
||||
|
||||
selectAddThang: (e) =>
|
||||
return if $(e.target).closest('#thang-search').length # Ignore if you're trying to search thangs
|
||||
return unless e? and $(e.target).closest('#editor-level-thangs-tab-view').length or key.isPressed('esc')
|
||||
if e then target = $(e.target) else target = @$el.find('.add-thangs-palette') # pretend to click on background if no event
|
||||
return true if target.attr('id') is 'surface'
|
||||
|
|
Loading…
Reference in a new issue