diff options
| author | vta vta@openerp.com <> | 2012-10-08 13:40:26 +0200 |
|---|---|---|
| committer | vta vta@openerp.com <> | 2012-10-08 13:40:26 +0200 |
| commit | e00dcf2eb82c8b68f174e3e5cda7dcaed1b3c36d (patch) | |
| tree | 3068bb65b41caefcf79c54821f98746d7746eeb7 /addons/web/static/src | |
| parent | 5562530ea513164ba6dc9caa8f2019c110057aa9 (diff) | |
[FIX] Fixed spacing.
bzr revid: vta@openerp.com-20121008114026-zpvwsl3c54anh512
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/view_form.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index b6ccc196afd..4b78072bbc1 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -2893,7 +2893,7 @@ instance.web.form.FieldMany2One = instance.web.form.AbstractField.extend(instanc 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(); @@ -4038,7 +4038,7 @@ instance.web.form.Many2ManyListView = instance.web.ListView.extend(/** @lends in 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); } }); @@ -4285,7 +4285,9 @@ instance.web.form.AbstractFormPopup = instance.web.Widget.extend({ }; 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; |
