diff --git a/frappe/public/js/frappe/form/footer/base_timeline.js b/frappe/public/js/frappe/form/footer/base_timeline.js
index 702d964442..beeba16459 100644
--- a/frappe/public/js/frappe/form/footer/base_timeline.js
+++ b/frappe/public/js/frappe/form/footer/base_timeline.js
@@ -97,9 +97,13 @@ class BaseTimeline {
}
timeline_item.append(`
`);
- timeline_item.find('.timeline-content').append(item.content);
+ let timeline_content = timeline_item.find('.timeline-content');
+ timeline_content.append(item.content);
if (!item.hide_timestamp && !item.is_card) {
- timeline_item.find('.timeline-content').append(`
- ${comment_when(item.creation)}`);
+ timeline_content.append(`
- ${comment_when(item.creation)}`);
+ }
+ if (item.id) {
+ timeline_content.attr("id", item.id);
}
return timeline_item;
}
diff --git a/frappe/public/js/frappe/form/footer/form_timeline.js b/frappe/public/js/frappe/form/footer/form_timeline.js
index b3feae3ee8..128bd355ad 100644
--- a/frappe/public/js/frappe/form/footer/form_timeline.js
+++ b/frappe/public/js/frappe/form/footer/form_timeline.js
@@ -96,6 +96,7 @@ class FormTimeline extends BaseTimeline {
render_timeline_items() {
super.render_timeline_items();
this.set_document_info();
+ frappe.utils.bind_actions_with_object(this.timeline_items_wrapper, this);
}
set_document_info() {
@@ -179,6 +180,7 @@ class FormTimeline extends BaseTimeline {
is_card: true,
content: this.get_communication_timeline_content(communication),
doctype: "Communication",
+ id: `communication-${communication.name}`,
name: communication.name
});
});
@@ -246,6 +248,7 @@ class FormTimeline extends BaseTimeline {
creation: comment.creation,
is_card: true,
doctype: "Comment",
+ id: `comment-${comment.name}`,
name: comment.name,
content: this.get_comment_timeline_content(comment),
};
@@ -394,7 +397,7 @@ class FormTimeline extends BaseTimeline {
}
setup_reply(communication_box, communication_doc) {
- let actions = communication_box.find('.actions');
+ let actions = communication_box.find('.custom-actions');
let reply = $(`
${frappe.utils.icon('reply', 'md')}`).click(() => {
this.compose_mail(communication_doc);
});
@@ -446,14 +449,16 @@ class FormTimeline extends BaseTimeline {
let edit_wrapper = $(`
+-
+ {{ __('Copy Link') }}
+
+
+