title: _t("Open: ") + self.string
}
);
- pop.on('on_write_complete',self,function(){
+ pop.on('on_write_complete', self, function(){
self.display_value = {};
self.render_value();
self.focus();
title: _t("Open: ") + this.m2m_field.string,
readonly: this.getParent().get("effective_readonly")
});
- pop.on('on_write_complete',self,self.reload_content);
+ pop.on('on_write_complete', self, self.reload_content);
}
});
};
this.dataset.write_function = function(id, data, options, sup) {
var fct = self.options.write_function || sup;
- return fct.call(this, id, data, options).then(function(){self.trigger('on_write_complete',self)});
+ return fct.call(this, id, data, options).then(function() {
+ self.trigger('on_write_complete');
+ });
};
this.dataset.parent_view = this.options.parent_view;
this.dataset.child_name = this.options.child_name;