Browse Source

comment

es6
windy 3 years ago
parent
commit
1be3a333d0
  1. 10
      src/case/colorchooser/colorpicker/button/button.colorshow.js
  2. 4
      src/case/colorchooser/colorpicker/editor.colorpicker.hex.js

10
src/case/colorchooser/colorpicker/button/button.colorshow.js

@ -16,7 +16,6 @@ BI.ColorChooserShowButton = BI.inherit(BI.BasicButton, {
items: [{
el: {
type: "bi.icon_label",
cls: o.iconCls,
ref: function (_ref) {
self.icon = _ref;
},
@ -39,15 +38,6 @@ BI.ColorChooserShowButton = BI.inherit(BI.BasicButton, {
this.fireEvent(BI.ColorChooserShowButton.EVENT_CHANGE, this);
}
},
setSelected: function (b) {
BI.ColorChooserShowButton.superclass.setSelected.apply(this, arguments);
if (b) {
this.icon.element.addClass("active");
} else {
this.icon.element.removeClass("active");
}
},
});
BI.ColorChooserShowButton.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.color_picker_show_button", BI.ColorChooserShowButton);

4
src/case/colorchooser/colorpicker/editor.colorpicker.hex.js

@ -65,7 +65,7 @@ BI.HexColorPickerEditor = BI.inherit(BI.Widget, {
height: 24,
items: [{
type: "bi.color_picker_show_button",
iconCls: "trans-color-icon",
cls: "trans-color-icon",
height: 22,
title: BI.i18nText("BI-Transparent_Color"),
text: BI.i18nText("BI-Transparent_Color"),
@ -94,7 +94,7 @@ BI.HexColorPickerEditor = BI.inherit(BI.Widget, {
}, {
el: {
type: "bi.color_picker_show_button",
iconCls: "auto-color-icon",
cls: "auto-color-icon",
height: 22,
title: BI.i18nText("BI-Basic_Auto"),
text: BI.i18nText("BI-Basic_Auto"),

Loading…
Cancel
Save