fix searching in new files

test plan:
in new files,
type something in the search box
hit enter
it should work

Change-Id: Ib47fd0fbfb415d242585f1a08c41985b04b8c363
Reviewed-on: https://gerrit.instructure.com/40289
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jason Madsen <jmadsen@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
This commit is contained in:
Ryan Shaw 2014-08-29 10:59:37 -06:00
parent f42da26308
commit 48209057f7
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ define [
propTypes:
currentFolder: React.PropTypes.object # not required as we don't have it on the first render
onSubmit: (event) ->
onSubmitSearch: (event) ->
event.preventDefault()
query = {search_term: @refs.searchTerm.getDOMNode().value}
Router.transitionTo 'search', @props.params, query