[pve-devel] r5819 - in pve-manager/pve2/www/new: data grid

svn-commits at proxmox.com svn-commits at proxmox.com
Tue Apr 19 08:56:18 CEST 2011


Author: dietmar
Date: 2011-04-19 08:56:18 +0200 (Tue, 19 Apr 2011)
New Revision: 5819

Modified:
   pve-manager/pve2/www/new/data/ResourceStore.js
   pve-manager/pve2/www/new/grid/ResourceGrid.js
Log:
fix sorting


Modified: pve-manager/pve2/www/new/data/ResourceStore.js
===================================================================
--- pve-manager/pve2/www/new/data/ResourceStore.js	2011-04-18 12:06:30 UTC (rev 5818)
+++ pve-manager/pve2/www/new/data/ResourceStore.js	2011-04-19 06:56:18 UTC (rev 5819)
@@ -39,7 +39,7 @@
 		    } else if (info.type === 'storage') {
 			text = info.storage + ' (' + info.node + ')';
 		    } else if (info.type === 'qemu' || info.type === 'openvz') {
-			text = info.vmid;
+			text = String(info.vmid);
 			if (info.name)
 			    text += " (" + info.name + ')';
 		    } else {

Modified: pve-manager/pve2/www/new/grid/ResourceGrid.js
===================================================================
--- pve-manager/pve2/www/new/grid/ResourceGrid.js	2011-04-18 12:06:30 UTC (rev 5818)
+++ pve-manager/pve2/www/new/grid/ResourceGrid.js	2011-04-19 06:56:18 UTC (rev 5819)
@@ -47,7 +47,7 @@
 	    Ext.each(['name', 'storage', 'node', 'type', 'text'], function(field) {
 		var v = item.data[field];
 		if (v !== undefined) {
-		    v = String(v).toLowerCase();
+		    v = v.toLowerCase();
 		    if (v.indexOf(textfilter) >= 0) {
 			match = true;
 			return false;




More information about the pve-devel mailing list