[pve-devel] r6420 - pve-manager/pve2/www/manager/form
svn-commits at proxmox.com
svn-commits at proxmox.com
Fri Aug 5 07:22:24 CEST 2011
Author: dietmar
Date: 2011-08-05 07:22:24 +0200 (Fri, 05 Aug 2011)
New Revision: 6420
Modified:
pve-manager/pve2/www/manager/form/FileSelector.js
Log:
use isNumber instead of isDefined (which is always true)
Modified: pve-manager/pve2/www/manager/form/FileSelector.js
===================================================================
--- pve-manager/pve2/www/manager/form/FileSelector.js 2011-08-05 05:20:14 UTC (rev 6419)
+++ pve-manager/pve2/www/manager/form/FileSelector.js 2011-08-05 05:22:24 UTC (rev 6420)
@@ -51,9 +51,9 @@
return value;
}
var data = record.data;
- if (Ext.isDefined(data.channel) &&
- Ext.isDefined(data.id) &&
- Ext.isDefined(data.lun)) {
+ if (Ext.isNumber(data.channel) &&
+ Ext.isNumber(data.id) &&
+ Ext.isNumber(data.lun)) {
return "CH " +
Ext.String.leftPad(data.channel,2, '0') +
" ID " + data.id + " LUN " + data.lun;
More information about the pve-devel
mailing list