Refactoring disable components

This commit is contained in:
Julia Radzhabova 2021-12-14 14:14:39 +03:00
parent 558a18ce0a
commit 50e24ddff8
9 changed files with 12 additions and 0 deletions

View file

@ -545,6 +545,7 @@ define([
},
setDisabled: function(disabled) {
disabled = !!disabled;
this.disabled = disabled;
if (!this.rendered)

View file

@ -380,6 +380,7 @@ define([
},
setDisabled: function(disabled) {
disabled = !!disabled;
this.disabled = disabled;
if (!this.rendered)

View file

@ -439,6 +439,7 @@ define([
},
setDisabled: function(disabled) {
disabled = !!disabled;
this.disabled = disabled;
if (!this.rendered)

View file

@ -763,6 +763,7 @@ define([
},
setDisabled: function(disabled) {
disabled = !!disabled;
this.disabled = disabled;
$(this.el).find('.inner').addBack().filter('.inner').toggleClass('disabled', disabled);
},
@ -1237,6 +1238,7 @@ define([
},
setDisabled: function(disabled) {
disabled = !!disabled;
this.disabled = disabled;
$(this.el).find('.inner').addBack().filter('.inner').toggleClass('disabled', disabled);
},

View file

@ -299,6 +299,7 @@ define([
},
setDisabled: function(disabled) {
disabled = !!disabled;
this.disabled = disabled;
$(this.el).toggleClass('disabled', disabled);
disabled
@ -525,6 +526,7 @@ define([
},
setDisabled: function(disabled) {
disabled = !!disabled;
this.disabled = disabled;
$(this.el).toggleClass('disabled', disabled);
disabled

View file

@ -206,6 +206,7 @@ define([
},
setDisabled: function(disabled) {
disabled = !!disabled;
var el = this.$el || $(this.el);
if (disabled !== this.disabled) {
el.find('button').toggleClass('disabled', disabled);

View file

@ -133,6 +133,7 @@ define([
if (!this.rendered)
return;
disabled = !!disabled;
if (disabled !== this.disabled) {
this.$label.toggleClass('disabled', disabled);
this.$radio.toggleClass('disabled', disabled);

View file

@ -272,6 +272,7 @@ define([
},
setDisabled: function(disabled) {
disabled = !!disabled;
if (disabled !== this.disabled)
this.cmpEl.toggleClass('disabled', disabled);
this.disabled = disabled;
@ -588,6 +589,7 @@ define([
},
setDisabled: function(disabled) {
disabled = !!disabled;
if (disabled !== this.disabled)
this.cmpEl.toggleClass('disabled', disabled);
this.disabled = disabled;

View file

@ -183,6 +183,7 @@ define([
},
setDisabled: function(disabled) {
disabled = !!disabled;
this.disabled = disabled;
$(this.el).toggleClass('disabled', disabled);
disabled