|
|
@ -36196,7 +36196,7 @@ BI.Single = BI.inherit(BI.Widget, { |
|
|
|
// opt: {container: '', belowMouse: false}
|
|
|
|
// opt: {container: '', belowMouse: false}
|
|
|
|
setTitle: function (title, opt) { |
|
|
|
setTitle: function (title, opt) { |
|
|
|
this.options.title = title; |
|
|
|
this.options.title = title; |
|
|
|
if (BI.isKey(title)) { |
|
|
|
if (BI.isKey(title) || BI.isFunction(title)) { |
|
|
|
this.enableHover(opt); |
|
|
|
this.enableHover(opt); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.disabledHover(); |
|
|
|
this.disabledHover(); |
|
|
@ -36205,7 +36205,7 @@ BI.Single = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
setWarningTitle: function (title, opt) { |
|
|
|
setWarningTitle: function (title, opt) { |
|
|
|
this.options.warningTitle = title; |
|
|
|
this.options.warningTitle = title; |
|
|
|
if (BI.isKey(title)) { |
|
|
|
if (BI.isKey(title) || BI.isFunction(title)) { |
|
|
|
this.enableHover(opt); |
|
|
|
this.enableHover(opt); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.disabledHover(); |
|
|
|
this.disabledHover(); |
|
|
@ -76924,13 +76924,14 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, { |
|
|
|
cls: "color-picker-editor-input", |
|
|
|
cls: "color-picker-editor-input", |
|
|
|
validationChecker: checker, |
|
|
|
validationChecker: checker, |
|
|
|
errorText: BI.i18nText("BI-Color_Picker_Error_Text"), |
|
|
|
errorText: BI.i18nText("BI-Color_Picker_Error_Text"), |
|
|
|
allowBlank: true, |
|
|
|
allowBlank: false, |
|
|
|
value: 255, |
|
|
|
value: 255, |
|
|
|
width: 32, |
|
|
|
width: 32, |
|
|
|
height: 20 |
|
|
|
height: 20 |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.each(Ws, function (i, w) { |
|
|
|
BI.each(Ws, function (i, w) { |
|
|
|
w.on(BI.TextEditor.EVENT_CHANGE, function () { |
|
|
|
w.on(BI.TextEditor.EVENT_CHANGE, function () { |
|
|
|
|
|
|
|
self._checkEditors(); |
|
|
|
if (self.R.isValid() && self.G.isValid() && self.B.isValid()) { |
|
|
|
if (self.R.isValid() && self.G.isValid() && self.B.isValid()) { |
|
|
|
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); |
|
|
@ -77031,6 +77032,18 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_checkEditors: function () { |
|
|
|
|
|
|
|
if(BI.isEmptyString(this.R.getValue())) { |
|
|
|
|
|
|
|
this.R.setValue(0); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(BI.isEmptyString(this.G.getValue())) { |
|
|
|
|
|
|
|
this.G.setValue(0); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(BI.isEmptyString(this.B.getValue())) { |
|
|
|
|
|
|
|
this.B.setValue(0); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_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"); |
|
|
|