瀏覽代碼

[fix] Timeline creation always showing few seconds ago (#3017)

version-14
rohitwaghchaure 8 年之前
committed by Rushabh Mehta
父節點
當前提交
ac7e40949d
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      frappe/public/js/frappe/form/footer/timeline.js

+ 1
- 1
frappe/public/js/frappe/form/footer/timeline.js 查看文件

@@ -141,6 +141,7 @@ frappe.ui.form.Timeline = Class.extend({
communication_type: "Comment", communication_type: "Comment",
sender: this.frm.doc.owner, sender: this.frm.doc.owner,
communication_date: this.frm.doc.creation, communication_date: this.frm.doc.creation,
creation: this.frm.doc.creation,
frm: this.frm frm: this.frm
}); });


@@ -154,7 +155,6 @@ frappe.ui.form.Timeline = Class.extend({
render_timeline_item: function(c) { render_timeline_item: function(c) {
var me = this; var me = this;
this.prepare_timeline_item(c); this.prepare_timeline_item(c);

var $timeline_item = $(frappe.render_template("timeline_item", {data:c, frm:this.frm})) var $timeline_item = $(frappe.render_template("timeline_item", {data:c, frm:this.frm}))
.appendTo(me.list) .appendTo(me.list)
.on("click", ".close", function() { .on("click", ".close", function() {


Loading…
取消
儲存