[pve-devel] r5923 - pve-manager/pve2/www/new/form
svn-commits at proxmox.com
svn-commits at proxmox.com
Fri May 6 15:00:32 CEST 2011
Author: dietmar
Date: 2011-05-06 15:00:32 +0200 (Fri, 06 May 2011)
New Revision: 5923
Modified:
pve-manager/pve2/www/new/form/FileSelector.js
Log:
format frilename
Modified: pve-manager/pve2/www/new/form/FileSelector.js
===================================================================
--- pve-manager/pve2/www/new/form/FileSelector.js 2011-05-06 12:41:25 UTC (rev 5922)
+++ pve-manager/pve2/www/new/form/FileSelector.js 2011-05-06 13:00:32 UTC (rev 5923)
@@ -39,7 +39,14 @@
var me = this;
var store = Ext.create('Ext.data.Store', {
- fields: [ 'volid', 'format', 'size', 'used', 'vmid' ],
+ fields: [ 'volid', 'format', 'size', 'used', 'vmid',
+ { name: 'text',
+ convert: function(value, record) {
+ if (value)
+ return value;
+ return record.data.volid.replace(/^.*:.*\//,'');;
+ }
+ }],
});
Ext.apply(me, {
@@ -47,12 +54,12 @@
allowBlank: false,
autoSelect: false,
valueField: 'volid',
- displayField: 'volid',
+ displayField: 'text',
listConfig: {
columns: [
{
header: 'Name',
- dataIndex: 'volid',
+ dataIndex: 'text',
hideable: false,
flex: 1
},
More information about the pve-devel
mailing list