summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAsaad Mahmood <asaadmahmoodspin@users.noreply.github.com>2016-05-03 20:53:29 +0500
committerCorey Hulen <corey@hulen.com>2016-05-03 08:53:29 -0700
commitffb4cb5e1051c3db13a8e3b1b2a9fd6fb8ed701c (patch)
treec277c42190e852c2f0da638467b554dcc529feaa
parent05a203b409ae461a99ca6f6e21d867c81ba071fa (diff)
downloadchat-ffb4cb5e1051c3db13a8e3b1b2a9fd6fb8ed701c.tar.gz
chat-ffb4cb5e1051c3db13a8e3b1b2a9fd6fb8ed701c.tar.bz2
chat-ffb4cb5e1051c3db13a8e3b1b2a9fd6fb8ed701c.zip
PLT-2705 - Fixing jump to archive on mobile (#2861)
-rw-r--r--webapp/components/search_results_item.jsx7
1 files changed, 7 insertions, 0 deletions
diff --git a/webapp/components/search_results_item.jsx b/webapp/components/search_results_item.jsx
index 7804cab7b..0c25e23bc 100644
--- a/webapp/components/search_results_item.jsx
+++ b/webapp/components/search_results_item.jsx
@@ -1,6 +1,7 @@
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
+import $ from 'jquery';
import UserProfile from './user_profile.jsx';
import UserStore from 'stores/user_store.jsx';
@@ -23,6 +24,10 @@ export default class SearchResultsItem extends React.Component {
this.handleFocusRHSClick = this.handleFocusRHSClick.bind(this);
}
+ hideSidebar() {
+ $('.inner-wrap, .sidebar--right').removeClass('move--left');
+ }
+
handleFocusRHSClick(e) {
e.preventDefault();
GlobalActions.emitPostFocusRightHandSideFromSearch(this.props.post, this.props.isMentionSearch);
@@ -127,6 +132,8 @@ export default class SearchResultsItem extends React.Component {
type: ActionTypes.RECEIVED_POST_SELECTED,
postId: null
});
+
+ this.hideSidebar();
}
browserHistory.push('/' + window.location.pathname.split('/')[1] + '/pl/' + post.id);
}