summaryrefslogtreecommitdiffstats
path: root/web/react
diff options
context:
space:
mode:
Diffstat (limited to 'web/react')
-rw-r--r--web/react/components/create_post.jsx1
-rw-r--r--web/react/components/post_list.jsx8
-rw-r--r--web/react/components/post_right.jsx1
-rw-r--r--web/react/components/sidebar_right.jsx5
4 files changed, 4 insertions, 11 deletions
diff --git a/web/react/components/create_post.jsx b/web/react/components/create_post.jsx
index d6b98cbbc..523112447 100644
--- a/web/react/components/create_post.jsx
+++ b/web/react/components/create_post.jsx
@@ -88,7 +88,6 @@ module.exports = React.createClass({
);
}
- // Scrolling Code Was Here
},
componentDidUpdate: function() {
this.resizePostHolder();
diff --git a/web/react/components/post_list.jsx b/web/react/components/post_list.jsx
index 8de43697c..d09c2e537 100644
--- a/web/react/components/post_list.jsx
+++ b/web/react/components/post_list.jsx
@@ -167,11 +167,12 @@ module.exports = React.createClass({
post_list.order.unshift(post.id);
}
- this.holdPosition = false;
-
if (this.state.channel.id === msg.channel_id) {
+ this.holdPosition = false;
this.setState({ post_list: post_list });
- };
+ } else {
+ this.holdPosition = true;
+ }
PostStore.storePosts(post.channel_id, post_list);
} else if (msg.action == "post_edited") {
@@ -246,7 +247,6 @@ module.exports = React.createClass({
Constants.POST_CHUNK_SIZE,
function(data) {
$(self.refs.loadmore.getDOMNode()).text("Load more messages");
- console.log("here")
if (!data) return;
diff --git a/web/react/components/post_right.jsx b/web/react/components/post_right.jsx
index e7a6fcf2a..ad8b54012 100644
--- a/web/react/components/post_right.jsx
+++ b/web/react/components/post_right.jsx
@@ -119,7 +119,6 @@ RootPost = React.createClass({
CommentPost = React.createClass({
render: function() {
- console.log("YOU NEED TO REMOVE THE POST RIGHT ENTRY")
var post = this.props.post;
var commentClass = "post";
diff --git a/web/react/components/sidebar_right.jsx b/web/react/components/sidebar_right.jsx
index a39bceeb8..7ceccb45c 100644
--- a/web/react/components/sidebar_right.jsx
+++ b/web/react/components/sidebar_right.jsx
@@ -38,9 +38,6 @@ module.exports = React.createClass({
}
}
},
- resize: function() {
- // Scrolling Code Was Here
- },
getInitialState: function() {
return getStateFromStores();
},
@@ -48,7 +45,6 @@ module.exports = React.createClass({
if (! (this.state.search_visible || this.state.post_right_visible)) {
$('.inner__wrap').removeClass('move--left').removeClass('move--right');
$('.sidebar--right').removeClass('move--left');
- // Scrolling Code Was Here
return (
<div></div>
);
@@ -58,7 +54,6 @@ module.exports = React.createClass({
$('.sidebar--left').removeClass('move--right');
$('.sidebar--right').addClass('move--left');
$('.sidebar--right').prepend('<div class="sidebar__overlay"></div>');
- // Scrolling Code Was Here
setTimeout(function(){
$('.sidebar__overlay').fadeOut("200", function(){
$(this).remove();