diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-07-23 18:28:31 -0400 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-07-29 09:52:09 -0400 |
commit | ca2b73eac375d7037c50e96330f449de2f2381bc (patch) | |
tree | 7e10db51e5548179be4416e9ba83259afa654c35 /web/react/components/post_right.jsx | |
parent | e1257b781939bc8767b379e3e49a7f2ca7e52e7b (diff) | |
download | chat-ca2b73eac375d7037c50e96330f449de2f2381bc.tar.gz chat-ca2b73eac375d7037c50e96330f449de2f2381bc.tar.bz2 chat-ca2b73eac375d7037c50e96330f449de2f2381bc.zip |
Fix ViewImageModals created by RHS posts so that their ids are distinct from those in the main window
Diffstat (limited to 'web/react/components/post_right.jsx')
-rw-r--r-- | web/react/components/post_right.jsx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/web/react/components/post_right.jsx b/web/react/components/post_right.jsx index 1d09842f3..ad8b54012 100644 --- a/web/react/components/post_right.jsx +++ b/web/react/components/post_right.jsx @@ -104,10 +104,10 @@ RootPost = React.createClass({ <p>{message}</p> { post.filenames && post.filenames.length > 0 ? <FileAttachmentList - postId={post.id} + filenames={post.filenames} + modalId={"rhs_view_image_modal_" + post.id} channelId={post.channel_id} - userId={post.user_id} - filenames={post.filenames} /> + userId={post.user_id} /> : "" } </div> </div> @@ -163,10 +163,10 @@ CommentPost = React.createClass({ <p>{message}</p> { post.filenames && post.filenames.length > 0 ? <FileAttachmentList - postId={post.id} + filenames={post.filenames} + modalId={"rhs_comment_view_image_modal_" + post.id} channelId={post.channel_id} - userId={post.user_id} - filenames={post.filenames} /> + userId={post.user_id} /> : "" } </div> </div> |