|
|
@ -124,7 +124,10 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_checkError: function (v) { |
|
|
|
_checkError: function (v) { |
|
|
|
if(BI.isNotNull(v)) { |
|
|
|
if(BI.isNull(v) || BI.isEmptyArray(v)) { |
|
|
|
|
|
|
|
this.trigger.options.tipType = "success"; |
|
|
|
|
|
|
|
this.element.removeClass("combo-error"); |
|
|
|
|
|
|
|
} else { |
|
|
|
v = BI.isArray(v) ? v : [v]; |
|
|
|
v = BI.isArray(v) ? v : [v]; |
|
|
|
var result = BI.find(this.options.items, function (idx, item) { |
|
|
|
var result = BI.find(this.options.items, function (idx, item) { |
|
|
|
return BI.contains(v, item.value); |
|
|
|
return BI.contains(v, item.value); |
|
|
|