浏览代码

Added set value to dialog

version-14
Neil Trini Lasrado 10 年前
父节点
当前提交
35606178f7
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. +10
    -0
      frappe/public/js/frappe/form/control.js

+ 10
- 0
frappe/public/js/frappe/form/control.js 查看文件

@@ -119,6 +119,16 @@ frappe.ui.form.ControlHTML = frappe.ui.form.Control.extend({
},
html: function(html) {
this.$wrapper.html(html || this.get_content());
},
set_value: function(html) {
if(html.appendTo) {
// jquery object
html.appendTo(this.$wrapper.empty());
} else {
// html
this.df.options = html;
this.html(html);
}
}
});



正在加载...
取消
保存