Click on date for reply or fwd

This commit is contained in:
Igor Zhukov 2016-01-22 20:59:20 +03:00
parent a7bb7ecb73
commit 465a54fb56
3 changed files with 14 additions and 1 deletions

View File

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

View File

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

View File

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