diff --git a/frappe/boot.py b/frappe/boot.py index cc894bddb3..9686e4f3c0 100644 --- a/frappe/boot.py +++ b/frappe/boot.py @@ -65,6 +65,8 @@ def get_bootinfo(): bootinfo.error_report_email = frappe.get_hooks("error_report_email") bootinfo.calendars = sorted(frappe.get_hooks("calendars")) bootinfo.treeviews = frappe.get_hooks("treeviews") or [] + bootinfo.email_accounts = frappe.get_doc('User Email', fields=['email_account', 'email_id'], + filters=dict(parent=frappe.session.user)) bootinfo.lang_dict = get_lang_dict() return bootinfo diff --git a/frappe/public/js/frappe/form/footer/timeline.js b/frappe/public/js/frappe/form/footer/timeline.js index 2f5b858a22..c065886dbb 100644 --- a/frappe/public/js/frappe/form/footer/timeline.js +++ b/frappe/public/js/frappe/form/footer/timeline.js @@ -37,10 +37,9 @@ frappe.ui.form.Timeline = Class.extend({ this.list.on("click",".comment-header",function(e) { if (!inList(["A","BUTTON"],e.target.tagName)) { $(this).parent().find(".timeline-content-show").toggleClass("hide"); - $(this).find(".expand-icon").toggleClass("octicon-chevron-down octicon-chevron-up") } }) - + this.email_button = this.wrapper.find(".btn-new-email") .on("click", function() { new frappe.views.CommunicationComposer({ @@ -137,7 +136,6 @@ frappe.ui.form.Timeline = Class.extend({ this.frm.trigger('timeline_refresh'); $(this.list.find(".comment-header")[0]).parent().find(".timeline-content-show").toggleClass("hide") - $(this.list.find(".comment-header")[0]).find(".expand-icon").toggleClass("octicon-chevron-down octicon-chevron-up") }, render_timeline_item: function(c) { diff --git a/frappe/public/js/frappe/form/footer/timeline_item.html b/frappe/public/js/frappe/form/footer/timeline_item.html index f15cf0aed8..f9ee179300 100755 --- a/frappe/public/js/frappe/form/footer/timeline_item.html +++ b/frappe/public/js/frappe/form/footer/timeline_item.html @@ -27,7 +27,6 @@ && data.comment_type==="Comment")) { %}