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:
parent
f42da26308
commit
48209057f7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue