|
|
@ -70,7 +70,7 @@ BI.MultiSelectLoader = BI.inherit(BI.Widget, { |
|
|
|
? self.storeValue.value.concat(startValue) : self.storeValue.value |
|
|
|
? self.storeValue.value.concat(startValue) : self.storeValue.value |
|
|
|
})); |
|
|
|
})); |
|
|
|
if (self.storeValue) { |
|
|
|
if (self.storeValue) { |
|
|
|
var json = BI.map(self.storeValue.value.slice((op.times - 1) * 10, op.times * 10), function (i, v) { |
|
|
|
var json = BI.map(self.storeValue.value.slice((op.times - 1) * 100, op.times * 100), function (i, v) { |
|
|
|
var txt = opts.valueFormatter(v) || v; |
|
|
|
var txt = opts.valueFormatter(v) || v; |
|
|
|
return { |
|
|
|
return { |
|
|
|
text: txt, |
|
|
|
text: txt, |
|
|
@ -90,7 +90,7 @@ BI.MultiSelectLoader = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (op.times < Math.floor((self.storeValue.value.length - 1) / 10)) { |
|
|
|
if (op.times < Math.floor((self.storeValue.value.length - 1) / 100)) { |
|
|
|
hasNext = true; |
|
|
|
hasNext = true; |
|
|
|
callback(self._createItems(json), op.keyword || ""); |
|
|
|
callback(self._createItems(json), op.keyword || ""); |
|
|
|
(op.times === 1) && self._scrollToTop(); |
|
|
|
(op.times === 1) && self._scrollToTop(); |
|
|
@ -98,7 +98,7 @@ BI.MultiSelectLoader = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
firstItems = self._createItems(json); |
|
|
|
firstItems = self._createItems(json); |
|
|
|
} |
|
|
|
} |
|
|
|
var times = op.times - Math.max(0, Math.floor((self.storeValue.value.length - 1) / 10)); |
|
|
|
var times = op.times - Math.max(0, Math.floor((self.storeValue.value.length - 1) / 100)); |
|
|
|
opts.itemsCreator(BI.extend({}, op, { |
|
|
|
opts.itemsCreator(BI.extend({}, op, { |
|
|
|
times: times |
|
|
|
times: times |
|
|
|
}), function (ob) { |
|
|
|
}), function (ob) { |
|
|
|