[MERGE] forward port branch saas-11.2 up to 500e3f4970
This commit is contained in:
@@ -2062,8 +2062,9 @@ var FieldToggleBoolean = AbstractField.extend({
|
||||
* @private
|
||||
*/
|
||||
_render: function () {
|
||||
var className = this.value ? 'o_toggle_button_success' : 'text-muted';
|
||||
this.$('i').addClass('fa fa-circle ' + className);
|
||||
this.$('i')
|
||||
.toggleClass('o_toggle_button_success', !!this.value)
|
||||
.toggleClass('text-muted', !this.value);
|
||||
var title = this.value ? this.attrs.options.active : this.attrs.options.inactive;
|
||||
this.$el.attr('title', title);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user