[merge] [FIX] FieldBoolean: allow click event to propagate the value to the model in all cases
bzr revid: fme@openerp.com-20111024082338-anop000q7iy0o2mr
This commit is contained in:
@@ -1419,11 +1419,7 @@ openerp.web.form.FieldBoolean = openerp.web.form.Field.extend({
|
||||
start: function() {
|
||||
var self = this;
|
||||
this._super.apply(this, arguments);
|
||||
this.$element.find('input').click(function() {
|
||||
if ($(this).is(':checked') != self.value) {
|
||||
self.on_ui_change();
|
||||
}
|
||||
});
|
||||
this.$element.find('input').click(self.on_ui_change);
|
||||
},
|
||||
set_value: function(value) {
|
||||
this._super.apply(this, arguments);
|
||||
|
||||
Reference in New Issue
Block a user