Ext.ns("filesmanager");function filter_list(a){search_field.enable();filesmanager.fileslist.store.filter("name",a,true,false)}filesmanager.fileslist=new Ext.list.ListView({store:filesmanager.files_store,multiSelect:true,reserveScrollOffset:true,emptyText:"Nessun file",columns:[{header:"Nome",dataIndex:"name",width:0.5},{header:"URL",width:0.35,dataIndex:"url"},{header:"Dimensione",dataIndex:"size",tpl:"{size:fileSize}",align:"right"}],listeners:{selectionchange:function(a,b){if(b.length){if(b.length==1){filesmanager.file_panel.getTopToolbar().getComponent("select").setDisabled(false)}else{filesmanager.file_panel.getTopToolbar().getComponent("select").setDisabled(true)}filesmanager.file_panel.getTopToolbar().getComponent("delete").setDisabled(false)}else{filesmanager.file_panel.getTopToolbar().getComponent("select").setDisabled(true);filesmanager.file_panel.getTopToolbar().getComponent("delete").setDisabled(true)}},dblclick:function(c,a,d,b){filesmanager.select_file()}}});