[minor] create trigger for timeline refresh (#2428)
This commit is contained in:
parent
337b6c4621
commit
cd2d45b37f
3 changed files with 4 additions and 3 deletions
|
|
@ -25,7 +25,7 @@ frappe.ui.form.Footer = Class.extend({
|
|||
this.frm.timeline = new frappe.ui.form.Timeline({
|
||||
parent: this.wrapper.find(".form-comments"),
|
||||
frm: this.frm
|
||||
})
|
||||
});
|
||||
},
|
||||
refresh: function() {
|
||||
if(this.frm.doc.__islocal) {
|
||||
|
|
|
|||
|
|
@ -115,6 +115,7 @@ frappe.ui.form.Timeline = Class.extend({
|
|||
|
||||
this.frm.sidebar.refresh_comments();
|
||||
|
||||
this.frm.trigger('timeline_refresh');
|
||||
},
|
||||
|
||||
render_timeline_item: function(c) {
|
||||
|
|
|
|||
|
|
@ -77,8 +77,8 @@
|
|||
<span class="likes-count text-muted">{{ (data._liked_by || []).length }}</span>
|
||||
</span>
|
||||
</div>
|
||||
<div class="reply" style="overflow-x:scroll">
|
||||
<div>
|
||||
<div class="reply" style="overflow-x: auto">
|
||||
<div class="timeline-item-content">
|
||||
{%= data.content_html %}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue