@ -348,25 +348,27 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
var self = this , o = this . options ;
this . _assertValue ( res ) ;
this . requesting = true ;
if ( this . storeValue . type === res . type ) {
var result = BI . Func . getSearchResult ( this . storeValue . value , this . trigger . getKey ( ) ) ;
var change = false ;
var map = this . _makeMap ( this . storeValue . value ) ;
BI . each ( BI . concat ( result . match , result . find ) , function ( i , v ) {
if ( BI . isNotNull ( map [ v ] ) ) {
change = true ;
self . storeValue . assist && self . storeValue . assist . push ( map [ v ] ) ;
delete map [ v ] ;
}
} ) ;
change && ( this . storeValue . value = BI . values ( map ) ) ;
this . _adjust ( callback ) ;
return ;
}
o . itemsCreator ( {
type : BI . MultiSelectInsertNoBarCombo . REQ _GET _ALL _DATA ,
keywords : [ this . trigger . getKey ( ) ]
keywords : [ this . trigger . getKey ( ) ] ,
selectedValues : this . storeValue . value ,
} , function ( ob ) {
var items = BI . map ( ob . items , "value" ) ;
if ( self . storeValue . type === res . type ) {
var change = false ;
var map = self . _makeMap ( self . storeValue . value ) ;
BI . each ( items , function ( i , v ) {
if ( BI . isNotNull ( map [ v ] ) ) {
change = true ;
self . storeValue . assist && self . storeValue . assist . push ( map [ v ] ) ;
delete map [ v ] ;
}
} ) ;
change && ( self . storeValue . value = BI . values ( map ) ) ;
self . _adjust ( callback ) ;
return ;
}
var selectedMap = self . _makeMap ( self . storeValue . value ) ;
var notSelectedMap = self . _makeMap ( res . value ) ;
var newItems = [ ] ;