print CGI::header('application/x-javascript');
if ($action eq 'list_files') {
- print "[";
+ print "[[0,0,0,0,'.',4096,'1970-01-01 00:00:00'],";
my $files = $bvfs->ls_files();
# [ 1, 2, 3, "Bill", 10, '2007-01-01 00:00:00'],
# File.FilenameId, listfiles.id, listfiles.Name, File.LStat, File.JobId
enableDrag: true,
enableDragDrop: true,
selModel: new Ext.grid.RowSelectionModel(),
- loadMask: true,
+ loadMask: true,
autoSizeColumns: true,
enableColLock:false
// TODO: selection only when using dblclick
files_grid.selModel.on('rowselect', function(e,i,r) {
+ if (r.json[4] == '.') {
+ return true;
+ }
Ext.brestore.filename = r.json[4];
file_versions_store.load({params:init_params({action: 'list_versions',
vafv: Ext.brestore.option_vafv,
width: 100
},{
dataIndex: 'pathid',
- header: 'PathId'
-// hidden: true
+ header: 'PathId',
+ hidden: true
},{
dataIndex: 'filenameid',
hidden: true
},{
dataIndex: 'fileid',
- header: 'FileId'
-// hidden: true
+ header: 'FileId',
+ hidden: true
}
]);
file_selection_grid.on('notifyDrop', function(dd,e) {
alert(e) ; return true;
});
-
+ func1 = function(e,b,c) {
+ if (e.browserEvent.keyCode == 46) {
+ for (elt in file_selection_grid.getSelectionModel().getSelections()) {
+ alert(elt);
+// file_selection_store.remove(elt);
+ }
+ }
+ };
+ file_selection_grid.on('keypress', func1);
///////////////////////////////////////////////////////
var file_versions_store = new Ext.data.Store({
triggerAction: 'all',
emptyText:'Select a job...',
selectOnFocus:true,
+ loadMask: true,
forceSelection: true,
width:350
});