|
|
|
@ -167,7 +167,7 @@ BI.MultiSelectInnerLoader = BI.inherit(BI.Widget, {
|
|
|
|
|
}]); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
this.options.items = (items || []).slice(0, 100); |
|
|
|
|
this.options.items = (items || []).slice(0, (items || []).length % 100); |
|
|
|
|
this.times = 1; |
|
|
|
|
this.count = 0; |
|
|
|
|
this.count += items.length; |
|
|
|
@ -184,14 +184,15 @@ BI.MultiSelectInnerLoader = BI.inherit(BI.Widget, {
|
|
|
|
|
populate: function (items, keyword) { |
|
|
|
|
if (this._populate.apply(this, arguments)) { |
|
|
|
|
this.cachItems = []; |
|
|
|
|
if (items.length > 100) { |
|
|
|
|
this.cachItems = items.slice(100); |
|
|
|
|
var firstItemsCount = 100 + items.length % 100; |
|
|
|
|
if (items.length > firstItemsCount) { |
|
|
|
|
this.cachItems = items.slice(firstItemsCount); |
|
|
|
|
} |
|
|
|
|
var renderEngine = BI.Widget._renderEngine; |
|
|
|
|
BI.Widget.registerRenderEngine(BI.Element.renderEngine); |
|
|
|
|
this.cachGroup.populate.call(this.cachGroup, items, keyword); |
|
|
|
|
BI.Widget.registerRenderEngine(renderEngine); |
|
|
|
|
this.button_group.populate.call(this.button_group, items.slice(0, 100), keyword); |
|
|
|
|
this.button_group.populate.call(this.button_group, items.slice(0, firstItemsCount), keyword); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|