Browse Source

Render message and media id

master
Igor Zhukov 6 years ago
parent
commit
aa139567fb
  1. 2
      app/partials/desktop/message.html
  2. 2
      app/partials/desktop/message_attach_document.html
  3. 3
      app/partials/mobile/message_attach_photo.html

2
app/partials/desktop/message.html

@ -1,4 +1,4 @@ @@ -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'">

2
app/partials/desktop/message_attach_document.html

@ -1,4 +1,4 @@ @@ -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>

3
app/partials/mobile/message_attach_photo.html

@ -1,4 +1,5 @@ @@ -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
class="im_message_photo_thumb"
my-load-thumb

Loading…
Cancel
Save