mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-23 19:32:03 -04: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()
|
# @thangsTreema.deselectAll()
|
||||||
|
|
||||||
selectAddThang: (e) =>
|
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')
|
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
|
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'
|
return true if target.attr('id') is 'surface'
|
||||||
|
|
Loading…
Add table
Reference in a new issue