[FIX] merge mistake breaking button widgets of form view

bzr revid: xmo@openerp.com-20120626082413-3tnrq8nm3koactn1
This commit is contained in:
Xavier Morel
2012-06-26 10:24:13 +02:00
parent 5e764699c3
commit f20cf64bdb
+2 -3
View File
@@ -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;