From f20cf64bdb2c13b815a9d7d57d60411290ca2ae9 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 26 Jun 2012 10:24:13 +0200 Subject: [PATCH] [FIX] merge mistake breaking button widgets of form view bzr revid: xmo@openerp.com-20120626082413-3tnrq8nm3koactn1 --- addons/web/static/src/js/view_form.js | 5 ++--- 1 file 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;