Drafts: Click on a message will open it for edit.

This commit is contained in:
Aman Khantaal 2017-02-28 19:16:56 +05:30 committed by Tim Abbott
parent 802de53ede
commit f0a9b7e4a1
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ exports.restore_draft = function (draft_id) {
exports.setup_page = function (callback) {
function setup_event_handlers() {
$(".draft_controls .restore-draft").on("click", function (e) {
$(".restore-draft").on("click", function (e) {
e.stopPropagation();
var draft_row = $(this).closest(".draft-row");

View File

@ -34,7 +34,7 @@
<i class="icon-vector-large icon-vector-trash delete-draft" data-toggle="tooltip" title="{{t 'Delete Draft' }}"></i>
</div>
</div>
<div class="message_content">{{{content}}}</div>
<div class="message_content restore-draft" data-toggle="tooltip" title="{{t 'Restore Draft' }}">{{{content}}}</div>
</div>
</div>
</div>