summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorAsaad Mahmood <Unknowngi@live.com>2015-07-17 23:56:27 +0500
committerAsaad Mahmood <Unknowngi@live.com>2015-07-17 23:56:27 +0500
commit97c112c42707f92279b8a85f1f0ad8517fa59f18 (patch)
tree137cb1b0968ba84a36a7926443105c6b72672432 /web
parent07601d6561cf6e7fe3c8cb9c15a12f26f8183246 (diff)
downloadchat-97c112c42707f92279b8a85f1f0ad8517fa59f18.tar.gz
chat-97c112c42707f92279b8a85f1f0ad8517fa59f18.tar.bz2
chat-97c112c42707f92279b8a85f1f0ad8517fa59f18.zip
Changing var currentUser in post_right
Diffstat (limited to 'web')
-rw-r--r--web/react/components/post_right.jsx12
1 files changed, 6 insertions, 6 deletions
diff --git a/web/react/components/post_right.jsx b/web/react/components/post_right.jsx
index 15a058c5f..2c28c5d9f 100644
--- a/web/react/components/post_right.jsx
+++ b/web/react/components/post_right.jsx
@@ -73,9 +73,9 @@ RootPost = React.createClass({
type = "Comment";
}
- var currentUser = "";
+ var currentUserCss = "";
if (UserStore.getCurrentId() === this.props.post.user_id) {
- currentUser = "current--user";
+ currentUserCss = "current--user";
}
if (filenames) {
@@ -116,7 +116,7 @@ RootPost = React.createClass({
}
return (
- <div className={"post post--root " + currentUser}>
+ <div className={"post post--root " + currentUserCss}>
<div className="post-profile-img__container">
<img className="post-profile-img" src={"/api/v1/users/" + this.props.post.user_id + "/image"} height="36" width="36" />
</div>
@@ -175,9 +175,9 @@ CommentPost = React.createClass({
var commentClass = "post";
- var currentUser = "";
+ var currentUserCss = "";
if (UserStore.getCurrentId() === this.props.post.user_id) {
- currentUser = "current--user";
+ currentUserCss = "current--user";
}
var postImageModalId = "rhs_comment_view_image_modal_" + this.props.post.id;
@@ -229,7 +229,7 @@ CommentPost = React.createClass({
var message = utils.textToJsx(this.props.post.message);
return (
- <div className={commentClass + " " + currentUser}>
+ <div className={commentClass + " " + currentUserCss}>
<div className="post-profile-img__container">
<img className="post-profile-img" src={"/api/v1/users/" + this.props.post.user_id + "/image"} height="36" width="36" />
</div>