Browse Source

[IMP] restore return super's result in start function

pull/351/head
Cesar Lage 8 years ago
parent
commit
bbcc9c3135
  1. 3
      web_widget_radio_tree/static/src/js/widget.js

3
web_widget_radio_tree/static/src/js/widget.js

@ -20,7 +20,7 @@ openerp.web_widget_radio_tree = function (instance) {
instance.web.form.RadioTree = instance.web.form.FieldBoolean.extend({
template: 'RadioTree',
start: function() {
this._super.apply(this, arguments);
var _super = this._super.apply(this, arguments);
this.$checkbox = $('input', this.$el);
var radio_name = this.getParent().model + '_' + this.$checkbox[0].name;
this.$checkbox.attr('name', radio_name);
@ -30,6 +30,7 @@ openerp.web_widget_radio_tree = function (instance) {
self.clean_radio_in_records();
this.internal_set_value(true);
}, this));
return _super;
},
click_disabled_boolean: function(){
var $disabled = this.$el.find('input[type=radio]:disabled');

Loading…
Cancel
Save