[pve-devel] r6084 - pve-manager/pve2/www/manager/qemu

svn-commits at proxmox.com svn-commits at proxmox.com
Wed Jun 15 12:50:43 CEST 2011


Author: dietmar
Date: 2011-06-15 12:50:43 +0200 (Wed, 15 Jun 2011)
New Revision: 6084

Modified:
   pve-manager/pve2/www/manager/qemu/HardwareView.js
Log:
improve hardware grid


Modified: pve-manager/pve2/www/manager/qemu/HardwareView.js
===================================================================
--- pve-manager/pve2/www/manager/qemu/HardwareView.js	2011-06-15 10:41:18 UTC (rev 6083)
+++ pve-manager/pve2/www/manager/qemu/HardwareView.js	2011-06-15 10:50:43 UTC (rev 6084)
@@ -21,7 +21,7 @@
 
     initComponent : function() {
 	var me = this;
-	var i;
+	var i, confid;
 
 	var nodename = me.pveSelNode.data.node;
 	if (!nodename) 
@@ -65,27 +65,31 @@
 	};
 
 	for (i = 0; i < 4; i++) {
-	    rows["ide" + i] = {
+	    confid = "ide" + i;
+	    rows[confid] = {
 		tdCls: 'pve-itype-icon-storage',
-		header: 'Hard Disk (IDE)'
+		header: 'Hard Disk ' + '(' + confid +')'
 	    };
 	}
 	for (i = 0; i < 16; i++) {
-	    rows["scsi" + i] = {
+	    confid = "scsi" + i;
+	    rows[confid] = {
 		tdCls: 'pve-itype-icon-storage',
-		header: 'Hard Disk (SCSI)'
+		header: 'Hard Disk ' + '(' + confid +')'
 	    };
 	}
 	for (i = 0; i < 16; i++) {
-	    rows["virtio" + i] = {
+	    confid = "virtio" + i;
+	    rows[confid] = {
 		tdCls: 'pve-itype-icon-storage',
-		header: 'Hard Disk (VIRTIO)'
+		header: 'Hard Disk ' + '(' + confid +')'
 	    };
 	}
 	for (i = 0; i < 32; i++) {
-	    rows["net" + i] = {
+	    confid = "net" + i;
+	    rows[confid] = {
 		tdCls: 'pve-itype-icon-network',
-		header: 'Network Adapter'
+		header: 'Network Adapter '+ '(' + confid +')'
 	    };
 	}
 	for (i = 0; i < 8; i++) {



More information about the pve-devel mailing list