diff options
| author | Xavier Morel <xmo@openerp.com> | 2012-06-26 10:24:13 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2012-06-26 10:24:13 +0200 |
| commit | f20cf64bdb2c13b815a9d7d57d60411290ca2ae9 (patch) | |
| tree | 6b7731caab5204f34953289051530c4848ca9476 | |
| parent | 5e764699c3ac402b8be1e3ae7d075dac8f7c1e7d (diff) | |
[FIX] merge mistake breaking button widgets of form view
bzr revid: xmo@openerp.com-20120626082413-3tnrq8nm3koactn1
| -rw-r--r-- | addons/web/static/src/js/view_form.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index 8f8122c4438..652ad74c012 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -1621,12 +1621,11 @@ instance.web.form.WidgetButton = instance.web.form.FormWidget.extend({ }, start: function() { this._super.apply(this, arguments); - var $button = this.$element.find('button'); - $button.click(this.on_click); + this.$element.click(this.on_click); if (this.node.attrs.help || instance.connection.debug) { this.do_attach_tooltip(); } - this.setupFocus($button); + this.setupFocus(this.$element); }, on_click: function() { var self = this; |
