|
|
@ -46,7 +46,7 @@ BI.StateEditor = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.text = BI.createWidget({ |
|
|
|
this.text = BI.createWidget({ |
|
|
|
type: "bi.text_button", |
|
|
|
type: "bi.text_button", |
|
|
|
cls: "state-editor-infinite-text tip-text-style", |
|
|
|
cls: "bi-water-mark tip-text-style", |
|
|
|
textAlign: "left", |
|
|
|
textAlign: "left", |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
@ -243,31 +243,31 @@ BI.StateEditor = BI.inherit(BI.Widget, { |
|
|
|
if (BI.isNumber(v)) { |
|
|
|
if (BI.isNumber(v)) { |
|
|
|
if (v === BI.Selection.All) { |
|
|
|
if (v === BI.Selection.All) { |
|
|
|
this.text.setText(BI.i18nText("BI-Select_All")); |
|
|
|
this.text.setText(BI.i18nText("BI-Select_All")); |
|
|
|
this.text.element.removeClass("state-editor-infinite-text"); |
|
|
|
this.text.element.removeClass("bi-water-mark"); |
|
|
|
} else if (v === BI.Selection.Multi) { |
|
|
|
} else if (v === BI.Selection.Multi) { |
|
|
|
this.text.setText(BI.i18nText("BI-Select_Part")); |
|
|
|
this.text.setText(BI.i18nText("BI-Select_Part")); |
|
|
|
this.text.element.removeClass("state-editor-infinite-text"); |
|
|
|
this.text.element.removeClass("bi-water-mark"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.text.setText(o.text); |
|
|
|
this.text.setText(o.text); |
|
|
|
this.text.element.addClass("state-editor-infinite-text"); |
|
|
|
this.text.element.addClass("bi-water-mark"); |
|
|
|
} |
|
|
|
} |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (BI.isString(v)) { |
|
|
|
if (BI.isString(v)) { |
|
|
|
this.text.setText(v); |
|
|
|
this.text.setText(v); |
|
|
|
this.text.element.removeClass("state-editor-infinite-text"); |
|
|
|
v === o.text ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark"); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (BI.isArray(v)) { |
|
|
|
if (BI.isArray(v)) { |
|
|
|
if (BI.isEmpty(v)) { |
|
|
|
if (BI.isEmpty(v)) { |
|
|
|
this.text.setText(o.text); |
|
|
|
this.text.setText(o.text); |
|
|
|
this.text.element.addClass("state-editor-infinite-text"); |
|
|
|
this.text.element.addClass("bi-water-mark"); |
|
|
|
} else if (v.length === 1) { |
|
|
|
} else if (v.length === 1) { |
|
|
|
this.text.setText(v[0]); |
|
|
|
this.text.setText(v[0]); |
|
|
|
this.text.element.removeClass("state-editor-infinite-text"); |
|
|
|
this.text.element.removeClass("bi-water-mark"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.text.setText(BI.i18nText("BI-Select_Part")); |
|
|
|
this.text.setText(BI.i18nText("BI-Select_Part")); |
|
|
|
this.text.element.removeClass("state-editor-infinite-text"); |
|
|
|
this.text.element.removeClass("bi-water-mark"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|