Browse Source

BI-20978

master
windy 7 years ago
parent
commit
d0ded06917
  1. 9
      dist/bundle.js
  2. 9
      dist/case.js
  3. 9
      dist/fineui.js
  4. 9
      src/case/colorchooser/colorpicker/editor.colorpicker.js

9
dist/bundle.js vendored

@ -76964,7 +76964,7 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
} else {
self.setValue(self.lastColor || "#ffffff");
}
if (self.R.isValid() && self.G.isValid() && self.B.isValid()) {
if ((self.R.isValid() && self.G.isValid() && self.B.isValid()) || self._isEmptyRGB()) {
self.colorShow.element.css("background-color", self.getValue());
self.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE);
}
@ -76989,7 +76989,8 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
}
self.setValue(self.lastColor || "#ffffff");
}
if (self.R.isValid() && self.G.isValid() && self.B.isValid()) {
if ((self.R.isValid() && self.G.isValid() && self.B.isValid()) ||
self._isEmptyRGB()) {
self.colorShow.element.css("background-color", self.getValue());
self.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE);
}
@ -77055,6 +77056,10 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
};
},
_isEmptyRGB: function () {
return BI.isEmptyString(this.storeValue.r) && BI.isEmptyString(this.storeValue.g) && BI.isEmptyString(this.storeValue.b);
},
_showPreColor: function (color) {
if (color === "") {
this.colorShow.element.css("background-color", "").removeClass("trans-color-background").addClass("auto-color-background");

9
dist/case.js vendored

@ -4486,7 +4486,7 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
} else {
self.setValue(self.lastColor || "#ffffff");
}
if (self.R.isValid() && self.G.isValid() && self.B.isValid()) {
if ((self.R.isValid() && self.G.isValid() && self.B.isValid()) || self._isEmptyRGB()) {
self.colorShow.element.css("background-color", self.getValue());
self.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE);
}
@ -4511,7 +4511,8 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
}
self.setValue(self.lastColor || "#ffffff");
}
if (self.R.isValid() && self.G.isValid() && self.B.isValid()) {
if ((self.R.isValid() && self.G.isValid() && self.B.isValid()) ||
self._isEmptyRGB()) {
self.colorShow.element.css("background-color", self.getValue());
self.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE);
}
@ -4577,6 +4578,10 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
};
},
_isEmptyRGB: function () {
return BI.isEmptyString(this.storeValue.r) && BI.isEmptyString(this.storeValue.g) && BI.isEmptyString(this.storeValue.b);
},
_showPreColor: function (color) {
if (color === "") {
this.colorShow.element.css("background-color", "").removeClass("trans-color-background").addClass("auto-color-background");

9
dist/fineui.js vendored

@ -77207,7 +77207,7 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
} else {
self.setValue(self.lastColor || "#ffffff");
}
if (self.R.isValid() && self.G.isValid() && self.B.isValid()) {
if ((self.R.isValid() && self.G.isValid() && self.B.isValid()) || self._isEmptyRGB()) {
self.colorShow.element.css("background-color", self.getValue());
self.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE);
}
@ -77232,7 +77232,8 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
}
self.setValue(self.lastColor || "#ffffff");
}
if (self.R.isValid() && self.G.isValid() && self.B.isValid()) {
if ((self.R.isValid() && self.G.isValid() && self.B.isValid()) ||
self._isEmptyRGB()) {
self.colorShow.element.css("background-color", self.getValue());
self.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE);
}
@ -77298,6 +77299,10 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
};
},
_isEmptyRGB: function () {
return BI.isEmptyString(this.storeValue.r) && BI.isEmptyString(this.storeValue.g) && BI.isEmptyString(this.storeValue.b);
},
_showPreColor: function (color) {
if (color === "") {
this.colorShow.element.css("background-color", "").removeClass("trans-color-background").addClass("auto-color-background");

9
src/case/colorchooser/colorpicker/editor.colorpicker.js

@ -73,7 +73,7 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
} else {
self.setValue(self.lastColor || "#ffffff");
}
if (self.R.isValid() && self.G.isValid() && self.B.isValid()) {
if ((self.R.isValid() && self.G.isValid() && self.B.isValid()) || self._isEmptyRGB()) {
self.colorShow.element.css("background-color", self.getValue());
self.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE);
}
@ -98,7 +98,8 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
}
self.setValue(self.lastColor || "#ffffff");
}
if (self.R.isValid() && self.G.isValid() && self.B.isValid()) {
if ((self.R.isValid() && self.G.isValid() && self.B.isValid()) ||
self._isEmptyRGB()) {
self.colorShow.element.css("background-color", self.getValue());
self.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE);
}
@ -164,6 +165,10 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
};
},
_isEmptyRGB: function () {
return BI.isEmptyString(this.storeValue.r) && BI.isEmptyString(this.storeValue.g) && BI.isEmptyString(this.storeValue.b);
},
_showPreColor: function (color) {
if (color === "") {
this.colorShow.element.css("background-color", "").removeClass("trans-color-background").addClass("auto-color-background");

Loading…
Cancel
Save