Merge pull request #1113 from rubenvereecken/issue1110

One line fix for issue #1110. Thang search bar works again.
This commit is contained in:
Nick Winter 2014-05-29 15:31:28 -07:00
commit 1f32c1c8a1

View file

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