+
+ style="margin-top: 3px; margin-right: 15px;">
diff --git a/frappe/public/js/frappe/form/footer/timeline.js b/frappe/public/js/frappe/form/footer/timeline.js
index c422ce9e4d..14916d171d 100644
--- a/frappe/public/js/frappe/form/footer/timeline.js
+++ b/frappe/public/js/frappe/form/footer/timeline.js
@@ -11,11 +11,11 @@ frappe.ui.form.Comments = Class.extend({
this.wrapper = $(frappe.render_template("timeline",
{ image: frappe.user_info(user).image, fullname: user_fullname })).appendTo(this.parent);
- this.list = this.wrapper.find(".timeline-items");
-
+ this.list = this.wrapper.find(".timeline-items");
this.input = this.wrapper.find(".form-control");
+
this.button = this.wrapper.find(".btn-go")
- .click(function() {
+ .on("click", function() {
if(me.wrapper.find(".is-email").prop("checked")) {
new frappe.views.CommunicationComposer({
doc: me.frm.doc,
@@ -26,6 +26,15 @@ frappe.ui.form.Comments = Class.extend({
me.add_comment(this);
}
});
+
+ this.email_check = this.wrapper.find(".timeline-head input[type='checkbox']")
+ .on("click", function() {
+ if ($(this).prop("checked")) {
+ me.button.html(__("Compose"));
+ } else {
+ me.button.html(__("Comment"));
+ }
+ });
},
refresh: function(scroll_to_end) {
var me = this;
@@ -130,13 +139,13 @@ frappe.ui.form.Comments = Class.extend({
"Created": "octicon octicon-plus",
"Submitted": "octicon octicon-lock",
"Cancelled": "octicon octicon-x",
- "Assigned": "octicon octicon-tag",
+ "Assigned": "octicon octicon-person",
"Assignment Completed": "octicon octicon-check",
"Comment": "octicon octicon-comment-discussion",
"Workflow": "octicon octicon-git-branch",
"Label": "octicon octicon-tag",
- "Attachment": "octicon octicon-upload",
- "Attachment Removed": "octicon octicon-x"
+ "Attachment": "octicon octicon-cloud-upload",
+ "Attachment Removed": "octicon octicon-trashcan"
}[c.comment_type]
c.color = {
diff --git a/frappe/public/js/frappe/form/footer/timeline_item.html b/frappe/public/js/frappe/form/footer/timeline_item.html
index 1786379752..477ef806f7 100644
--- a/frappe/public/js/frappe/form/footer/timeline_item.html
+++ b/frappe/public/js/frappe/form/footer/timeline_item.html
@@ -14,8 +14,8 @@
{%= data.fullname %}
- ‐ {%= data.comment_on %}
- {% if(data.doctype=="Communication") { %} ‐
+ – {%= data.comment_on %}
+ {% if(data.doctype=="Communication") { %} –
{%= __("Details") %}
{% } %}
@@ -30,14 +30,14 @@
{%= data.comment %}
- ‐ {%= data.comment_on %}
+ – {%= data.comment_on %}
{% } else { %}
{%= data.fullname %} {%= data.comment %}
- ‐ {%= data.comment_on %}
+ – {%= data.comment_on %}
{% } %}
{% if(data.attachments && data.attachments.length) { %}
diff --git a/frappe/public/js/frappe/form/grid_form.html b/frappe/public/js/frappe/form/grid_form.html
index 795cfb3c2d..0b7ce326c5 100644
--- a/frappe/public/js/frappe/form/grid_form.html
+++ b/frappe/public/js/frappe/form/grid_form.html
@@ -2,20 +2,24 @@
{%= __("Editing Row") %} #
-
+
+
+ {%= __("Remove") %}