|
|
|
@ -232,6 +232,7 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
setState: function (v) { |
|
|
|
|
var o = this.options; |
|
|
|
|
BI.SimpleStateEditor.superclass.setValue.apply(this, arguments); |
|
|
|
|
var defaultText = BI.isFunction(o.defaultText) ? o.defaultText() : o.defaultText; |
|
|
|
|
if (BI.isNumber(v)) { |
|
|
|
|
if (v === BI.Selection.All) { |
|
|
|
|
this._setText(BI.i18nText("BI-Already_Selected")); |
|
|
|
@ -240,7 +241,7 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
this._setText(BI.i18nText("BI-Already_Selected")); |
|
|
|
|
this.text.element.removeClass("bi-water-mark"); |
|
|
|
|
} else { |
|
|
|
|
this._setText(o.text); |
|
|
|
|
this._setText(BI.isKey(defaultText) ? defaultText : o.text); |
|
|
|
|
this.text.element.addClass("bi-water-mark"); |
|
|
|
|
} |
|
|
|
|
return; |
|
|
|
|