Browse Source

Click on date for reply or fwd

master
Igor Zhukov 9 years ago
parent
commit
465a54fb56
  1. 9
      app/js/controllers.js
  2. 4
      app/less/app.less
  3. 2
      app/partials/desktop/message.html

9
app/js/controllers.js

@ -1558,6 +1558,15 @@ angular.module('myApp.controllers', ['myApp.i18n']) @@ -1558,6 +1558,15 @@ angular.module('myApp.controllers', ['myApp.i18n'])
}
break;
}
if (target.className &&
target.className.indexOf('im_message_date') != -1) {
if ($scope.historyState.canReply) {
selectedReply(messageID);
} else {
selectedForward(messageID);
}
return false;
}
if (Config.Mobile &&
target.className &&
target.className.indexOf('im_message_body') != -1) {

4
app/less/app.less

@ -2026,6 +2026,10 @@ img.im_message_document_thumb { @@ -2026,6 +2026,10 @@ img.im_message_document_thumb {
padding: 0 0 20px 10px;
}
.im_message_date {
cursor: pointer;
}
div.im_message_author,
div.im_message_body {
display: block;

2
app/partials/desktop/message.html

@ -39,7 +39,7 @@ @@ -39,7 +39,7 @@
<i class="icon-message-views"></i><span class="im_message_views_cnt" my-message-views="historyMessage.mid"></span>
</div>
</div>
<span class="im_message_date" ng-bind="::historyMessage.date | time"></span>
<span class="im_message_date clickable" ng-bind="::historyMessage.date | time"></span>
</div>
<div class="im_message_body" ng-class="::{im_message_body_media: historyMessage._ == 'message' &amp;&amp; historyMessage.media ? true : false}">

Loading…
Cancel
Save