Removed personal debugging code and notes
Этот коммит содержится в:
@@ -88,7 +88,6 @@ module.exports = React.createClass({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scrolling Code Was Here
|
|
||||||
},
|
},
|
||||||
componentDidUpdate: function() {
|
componentDidUpdate: function() {
|
||||||
this.resizePostHolder();
|
this.resizePostHolder();
|
||||||
|
|||||||
@@ -167,11 +167,12 @@ module.exports = React.createClass({
|
|||||||
post_list.order.unshift(post.id);
|
post_list.order.unshift(post.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.holdPosition = false;
|
|
||||||
|
|
||||||
if (this.state.channel.id === msg.channel_id) {
|
if (this.state.channel.id === msg.channel_id) {
|
||||||
|
this.holdPosition = false;
|
||||||
this.setState({ post_list: post_list });
|
this.setState({ post_list: post_list });
|
||||||
};
|
} else {
|
||||||
|
this.holdPosition = true;
|
||||||
|
}
|
||||||
|
|
||||||
PostStore.storePosts(post.channel_id, post_list);
|
PostStore.storePosts(post.channel_id, post_list);
|
||||||
} else if (msg.action == "post_edited") {
|
} else if (msg.action == "post_edited") {
|
||||||
@@ -246,7 +247,6 @@ module.exports = React.createClass({
|
|||||||
Constants.POST_CHUNK_SIZE,
|
Constants.POST_CHUNK_SIZE,
|
||||||
function(data) {
|
function(data) {
|
||||||
$(self.refs.loadmore.getDOMNode()).text("Load more messages");
|
$(self.refs.loadmore.getDOMNode()).text("Load more messages");
|
||||||
console.log("here")
|
|
||||||
|
|
||||||
if (!data) return;
|
if (!data) return;
|
||||||
|
|
||||||
|
|||||||
@@ -119,7 +119,6 @@ RootPost = React.createClass({
|
|||||||
|
|
||||||
CommentPost = React.createClass({
|
CommentPost = React.createClass({
|
||||||
render: function() {
|
render: function() {
|
||||||
console.log("YOU NEED TO REMOVE THE POST RIGHT ENTRY")
|
|
||||||
var post = this.props.post;
|
var post = this.props.post;
|
||||||
|
|
||||||
var commentClass = "post";
|
var commentClass = "post";
|
||||||
|
|||||||
@@ -38,9 +38,6 @@ module.exports = React.createClass({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
resize: function() {
|
|
||||||
// Scrolling Code Was Here
|
|
||||||
},
|
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
return getStateFromStores();
|
return getStateFromStores();
|
||||||
},
|
},
|
||||||
@@ -48,7 +45,6 @@ module.exports = React.createClass({
|
|||||||
if (! (this.state.search_visible || this.state.post_right_visible)) {
|
if (! (this.state.search_visible || this.state.post_right_visible)) {
|
||||||
$('.inner__wrap').removeClass('move--left').removeClass('move--right');
|
$('.inner__wrap').removeClass('move--left').removeClass('move--right');
|
||||||
$('.sidebar--right').removeClass('move--left');
|
$('.sidebar--right').removeClass('move--left');
|
||||||
// Scrolling Code Was Here
|
|
||||||
return (
|
return (
|
||||||
<div></div>
|
<div></div>
|
||||||
);
|
);
|
||||||
@@ -58,7 +54,6 @@ module.exports = React.createClass({
|
|||||||
$('.sidebar--left').removeClass('move--right');
|
$('.sidebar--left').removeClass('move--right');
|
||||||
$('.sidebar--right').addClass('move--left');
|
$('.sidebar--right').addClass('move--left');
|
||||||
$('.sidebar--right').prepend('<div class="sidebar__overlay"></div>');
|
$('.sidebar--right').prepend('<div class="sidebar__overlay"></div>');
|
||||||
// Scrolling Code Was Here
|
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
$('.sidebar__overlay').fadeOut("200", function(){
|
$('.sidebar__overlay').fadeOut("200", function(){
|
||||||
$(this).remove();
|
$(this).remove();
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user