diff --git a/assets/javascripts/views/search/search.coffee b/assets/javascripts/views/search/search.coffee index ad5b6a0c..7d05f0a0 100644 --- a/assets/javascripts/views/search/search.coffee +++ b/assets/javascripts/views/search/search.coffee @@ -143,6 +143,7 @@ class app.views.Search extends app.View onScopeChange: => @value = '' + @onInput() return afterRoute: (name, context) => diff --git a/assets/javascripts/views/search/search_scope.coffee b/assets/javascripts/views/search/search_scope.coffee index 8ad033ec..4a43f641 100644 --- a/assets/javascripts/views/search/search_scope.coffee +++ b/assets/javascripts/views/search/search_scope.coffee @@ -91,7 +91,6 @@ class app.views.SearchScope extends app.View onClick: (event) => if event.target is @tag @reset() - $.trigger @input, 'input' $.stopEvent(event) return @@ -99,7 +98,6 @@ class app.views.SearchScope extends app.View if event.which is 8 # backspace if @doc and @input.selectionEnd is 0 @reset() - $.trigger @input, 'input' $.stopEvent(event) else if not @doc and @input.value return if event.ctrlKey or event.metaKey or event.altKey or event.shiftKey