diff options
author | nickago <ngonella@calpoly.edu> | 2015-08-21 08:41:36 -0700 |
---|---|---|
committer | nickago <ngonella@calpoly.edu> | 2015-08-21 08:44:44 -0700 |
commit | 8230b49014481154af1c6c9c41944010f0fbec50 (patch) | |
tree | 29bbac2704d62859118f32ac8c865744d62fbf7d /web/react | |
parent | ddcdcc3e2c85efbfd1d91d69c0f5c0af7c7cb1c7 (diff) | |
download | chat-8230b49014481154af1c6c9c41944010f0fbec50.tar.gz chat-8230b49014481154af1c6c9c41944010f0fbec50.tar.bz2 chat-8230b49014481154af1c6c9c41944010f0fbec50.zip |
remove search term after the RHS is closed
Diffstat (limited to 'web/react')
-rw-r--r-- | web/react/components/search_bar.jsx | 7 | ||||
-rw-r--r-- | web/react/components/search_results.jsx | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/web/react/components/search_bar.jsx b/web/react/components/search_bar.jsx index e39cf5d46..b11b39e9e 100644 --- a/web/react/components/search_bar.jsx +++ b/web/react/components/search_bar.jsx @@ -48,6 +48,13 @@ module.exports = React.createClass({ }); AppDispatcher.handleServerAction({ + type: ActionTypes.RECIEVED_SEARCH_TERM, + term: null, + do_search: false, + is_mention_search: false + }); + + AppDispatcher.handleServerAction({ type: ActionTypes.RECIEVED_POST_SELECTED, results: null }); diff --git a/web/react/components/search_results.jsx b/web/react/components/search_results.jsx index 643ad112b..b1efd7685 100644 --- a/web/react/components/search_results.jsx +++ b/web/react/components/search_results.jsx @@ -24,6 +24,13 @@ var RhsHeaderSearch = React.createClass({ }); AppDispatcher.handleServerAction({ + type: ActionTypes.RECIEVED_SEARCH_TERM, + term: null, + do_search: false, + is_mention_search: false + }); + + AppDispatcher.handleServerAction({ type: ActionTypes.RECIEVED_POST_SELECTED, results: null }); |