Browse Source

Pull request #1427: 无JIRA任务 整理一下

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit 'b4fbe7a5f284a38cf0be4c9893b188355249b8aa':
  整理一下
es6
guy 4 years ago
parent
commit
fdbf1fa5fc
  1. 8
      src/component/allvaluechooser/pane.allvaluechooser.js

8
src/component/allvaluechooser/pane.allvaluechooser.js

@ -22,9 +22,6 @@ BI.AllValueChooserPane = BI.inherit(BI.AbstractAllValueChooser, {
_init: function () {
BI.AllValueChooserPane.superclass._init.apply(this, arguments);
var self = this, o = this.options;
if (BI.isNotNull(o.items)) {
this.items = o.items;
}
this.list = BI.createWidget({
type: "bi.multi_select_list",
element: this,
@ -37,6 +34,11 @@ BI.AllValueChooserPane = BI.inherit(BI.AbstractAllValueChooser, {
this.list.on(BI.MultiSelectList.EVENT_CHANGE, function () {
self.fireEvent(BI.AllValueChooserPane.EVENT_CHANGE);
});
if (BI.isNotNull(o.items)) {
this.items = o.items;
this.list.populate();
}
},
setValue: function (v) {

Loading…
Cancel
Save