|
|
@ -76964,7 +76964,7 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
self.setValue(self.lastColor || "#ffffff"); |
|
|
|
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.colorShow.element.css("background-color", self.getValue()); |
|
|
|
self.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE); |
|
|
|
self.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE); |
|
|
|
} |
|
|
|
} |
|
|
@ -76989,7 +76989,8 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
self.setValue(self.lastColor || "#ffffff"); |
|
|
|
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.colorShow.element.css("background-color", self.getValue()); |
|
|
|
self.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE); |
|
|
|
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) { |
|
|
|
_showPreColor: function (color) { |
|
|
|
if (color === "") { |
|
|
|
if (color === "") { |
|
|
|
this.colorShow.element.css("background-color", "").removeClass("trans-color-background").addClass("auto-color-background"); |
|
|
|
this.colorShow.element.css("background-color", "").removeClass("trans-color-background").addClass("auto-color-background"); |
|
|
|