@ -243,24 +243,26 @@ BI.MultiSelectInsertNoBarList = BI.inherit(BI.Single, {
_joinAll : function ( res , callback ) {
var self = this , o = this . options ;
this . _assertValue ( res ) ;
o . itemsCreator ( {
type : BI . MultiSelectInsertNoBarList . REQ _GET _ALL _DATA ,
keywords : [ self . trigger . getKeyword ( ) ]
} , function ( ob ) {
var items = BI . map ( ob . items , "value" ) ;
if ( self . storeValue . type === res . type ) {
if ( this . storeValue . type === res . type ) {
var result = BI . Func . getSearchResult ( this . storeValue . value , this . trigger . getKey ( ) ) ;
var change = false ;
var map = self . _makeMap ( self . storeValue . value ) ;
BI . each ( items , function ( i , v ) {
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 ;
delete map [ v ] ;
}
} ) ;
change && ( self . storeValue . value = BI . values ( map ) ) ;
change && ( this . storeValue . value = BI . values ( map ) ) ;
callback ( ) ;
return ;
}
o . itemsCreator ( {
type : BI . MultiSelectInsertNoBarList . REQ _GET _ALL _DATA ,
keywords : [ this . trigger . getKeyword ( ) ] ,
selectedValues : this . storeValue . value ,
} , function ( ob ) {
var items = BI . map ( ob . items , "value" ) ;
var selectedMap = self . _makeMap ( self . storeValue . value ) ;
var notSelectedMap = self . _makeMap ( res . value ) ;
var newItems = [ ] ;