PDA

View Full Version : Ext.util.MixedCollection problem with.



pasblin
31 Aug 2009, 9:26 AM
i have this code


Ext.BLANK_IMAGE_URL="ext/resources/images/default/s.gif";
Ext.onReady(function(){
Ext.QuickTips.init();
var coleccion= new Ext.util.MixedCollection();
Ext.get('boton').on('click',function(){
if(coleccion.containsKey('filemanager')){
console.debug('abro');
var otro=coleccion.item('filemanager');
otro.show();
}
else{
console.debug('aņado');
var manager = new Ext.ux.FileManager({
url: 'secciones/getfiles/getFiles.php'
});
manager.show();
coleccion.add(manager.getXType().toString(),manager);
}

});
});
when i close the filemanager (its a window class extend ...the window destroy on close) and when i do click again in the button
the filemanger dont show (otro.show()).
can some one help me??
Thx a lot ;)