|
|
|
@ -67,10 +67,11 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
BI.each(formatItems, function (i, item) { |
|
|
|
|
if (BI.contains(val, item.value) && !BI.contains(result, item.text || item.value)) { |
|
|
|
|
result.push(item.text || item.value); |
|
|
|
|
BI.remove(val, item.value); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
if (result.length > 0) { |
|
|
|
|
if (result.length > 0 && val.length === 0) { |
|
|
|
|
return { |
|
|
|
|
textCls: "", |
|
|
|
|
text: result.join(","), |
|
|
|
|