[fix] [link] bind df.control

This commit is contained in:
Rushabh Mehta 2015-07-13 12:46:23 +05:30
parent 67223f487c
commit 342fa00f3c

View file

@ -964,6 +964,11 @@ frappe.ui.form.ControlLink = frappe.ui.form.ControlData.extend({
var me = this;
this.setup_buttons();
this.setup_autocomplete();
if(this.df.change) {
this.$input.on("change", function() {
me.df.change.apply(this);
});
}
},
get_options: function() {
return this.df.options;