summaryrefslogtreecommitdiffstats
path: root/web/react/components/search_bar.jsx
diff options
context:
space:
mode:
authornickago <ngonella@calpoly.edu>2015-08-21 08:41:36 -0700
committernickago <ngonella@calpoly.edu>2015-08-21 08:44:44 -0700
commit8230b49014481154af1c6c9c41944010f0fbec50 (patch)
tree29bbac2704d62859118f32ac8c865744d62fbf7d /web/react/components/search_bar.jsx
parentddcdcc3e2c85efbfd1d91d69c0f5c0af7c7cb1c7 (diff)
downloadchat-8230b49014481154af1c6c9c41944010f0fbec50.tar.gz
chat-8230b49014481154af1c6c9c41944010f0fbec50.tar.bz2
chat-8230b49014481154af1c6c9c41944010f0fbec50.zip
remove search term after the RHS is closed
Diffstat (limited to 'web/react/components/search_bar.jsx')
-rw-r--r--web/react/components/search_bar.jsx7
1 files changed, 7 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
});