diff --git a/src/base/single/editor/editor.textarea.js b/src/base/single/editor/editor.textarea.js index 1d3fd93f0..9b51b63c7 100644 --- a/src/base/single/editor/editor.textarea.js +++ b/src/base/single/editor/editor.textarea.js @@ -11,8 +11,8 @@ BI.TextAreaEditor = BI.inherit(BI.Single, { value: "" }); }, - _init: function () { - BI.TextAreaEditor.superclass._init.apply(this, arguments); + + render: function() { var o = this.options, self = this; this.content = BI.createWidget({ type: "bi.layout", @@ -62,10 +62,10 @@ BI.TextAreaEditor = BI.inherit(BI.Single, { BI.Widget._renderEngine.createElement(document).unbind("mousedown." + self.getName()); }); if (BI.isKey(o.value)) { - self.setValue(o.value); + this.setValue(o.value); } if (BI.isNotNull(o.style)) { - self.setStyle(o.style); + this.setStyle(o.style); } this._checkWaterMark(); }, @@ -155,6 +155,11 @@ BI.TextAreaEditor = BI.inherit(BI.Single, { BI.TextAreaEditor.superclass._setValid.apply(this, arguments); // this.content.setValid(b); // this.watermark && this.watermark.setValid(b); + }, + + _setEnable: function (b) { + BI.TextAreaEditor.superclass._setEnable.apply(this, [b]); + this.content && (this.content.element[0].disabled = !b); } }); BI.TextAreaEditor.EVENT_CHANGE = "EVENT_CHANGE"; diff --git a/src/widget/multilayersingletree/multilayersingletree.leveltree.js b/src/widget/multilayersingletree/multilayersingletree.leveltree.js index ced457acf..8b897354e 100644 --- a/src/widget/multilayersingletree/multilayersingletree.leveltree.js +++ b/src/widget/multilayersingletree/multilayersingletree.leveltree.js @@ -18,8 +18,11 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, { }, _init: function () { + var o = this.options; BI.MultiLayerSingleLevelTree.superclass._init.apply(this, arguments); + this.storeValue = o.value; + this.initTree(this.options.items); this.check(); @@ -106,7 +109,7 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, { el: { type: "bi.loader", - isDefaultInit: false, + isDefaultInit: o.itemsCreator !== BI.emptyFn, chooseType: o.chooseType, el: { type: "bi.button_tree", diff --git a/src/widget/singleselect/singleselect.list.js b/src/widget/singleselect/singleselect.list.js index 681ef54f9..98340ede0 100644 --- a/src/widget/singleselect/singleselect.list.js +++ b/src/widget/singleselect/singleselect.list.js @@ -60,6 +60,7 @@ BI.SingleSelectList = BI.inherit(BI.Widget, { }, o.logic, { items: o.allowNoSelect ? BI.LogicFactory.createLogicItemsByDirection(o.direction, { type: "bi.single_select_item", + cls: "bi-list-item-active", height: 24, forceNotSelected: true, text: BI.i18nText("BI-Basic_No_Select"),