Fix ViewImageModals created by RHS posts so that their ids are distinct from those in the main window

Этот коммит содержится в:
hmhealey
2015-07-23 18:28:31 -04:00
родитель e1257b7819
Коммит ca2b73eac3
4 изменённых файлов: 15 добавлений и 16 удалений

Просмотреть файл

@@ -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>