Browse Source

Added set value to dialog

version-14
Neil Trini Lasrado 10 years ago
parent
commit
35606178f7
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      frappe/public/js/frappe/form/control.js

+ 10
- 0
frappe/public/js/frappe/form/control.js View File

@@ -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);
}
}
});



Loading…
Cancel
Save