From 465a54fb56031e8c50ef93c927481a2ddbc64c1d Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Fri, 22 Jan 2016 20:59:20 +0300 Subject: [PATCH] Click on date for reply or fwd --- app/js/controllers.js | 9 +++++++++ app/less/app.less | 4 ++++ app/partials/desktop/message.html | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/app/js/controllers.js b/app/js/controllers.js index 57415f60..698302d5 100644 --- a/app/js/controllers.js +++ b/app/js/controllers.js @@ -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) { diff --git a/app/less/app.less b/app/less/app.less index 4dd37b09..681ecf98 100644 --- a/app/less/app.less +++ b/app/less/app.less @@ -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; diff --git a/app/partials/desktop/message.html b/app/partials/desktop/message.html index 769bf864..da2424d3 100644 --- a/app/partials/desktop/message.html +++ b/app/partials/desktop/message.html @@ -39,7 +39,7 @@ - +