Render message and media id

This commit is contained in:
Igor Zhukov 2018-07-16 23:00:35 +01:00
parent c5fc5107ca
commit aa139567fb
3 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
<div class="im_message_outer_wrap hasselect" ng-click="toggleMessage(historyMessage.mid, $event)"> <div class="im_message_outer_wrap hasselect" ng-click="toggleMessage(historyMessage.mid, $event)" data-msg-id="{{::historyMessage.id}}">
<div class="im_message_wrap clearfix" ng-switch="::historyMessage._ == 'messageService'"> <div class="im_message_wrap clearfix" ng-switch="::historyMessage._ == 'messageService'">

View File

@ -1,4 +1,4 @@
<div ng-switch="::media.document.type"> <div ng-switch="::media.document.type" data-doc-id="{{::media.document.id}}">
<div ng-switch-when="gif" my-load-gif document="media.document"></div> <div ng-switch-when="gif" my-load-gif document="media.document"></div>

View File

@ -1,4 +1,5 @@
<a class="im_message_photo_thumb" ng-click="openPhoto(media.photo.id, {m: messageId})" ng-style="::{width: media.photo.thumb.width + 'px'}" ng-mouseover="preloadPhoto(media.photo.id)"> <a class="im_message_photo_thumb" ng-click="openPhoto(media.photo.id, {m: messageId})" ng-style="::{width: media.photo.thumb.width + 'px'}" ng-mouseover="preloadPhoto(media.photo.id)" data-photo-id="{{::media.photo.id}}">
<img <img
class="im_message_photo_thumb" class="im_message_photo_thumb"
my-load-thumb my-load-thumb