[pve-devel] r4860 - pve-manager/pve2/www/manager

svn-commits at proxmox.com svn-commits at proxmox.com
Thu Jul 1 11:38:44 CEST 2010


Author: dietmar
Date: 2010-07-01 09:38:44 +0000 (Thu, 01 Jul 2010)
New Revision: 4860

Modified:
   pve-manager/pve2/www/manager/PVECache.js
   pve-manager/pve2/www/manager/PVEUtils.js
Log:
fix paths


Modified: pve-manager/pve2/www/manager/PVECache.js
===================================================================
--- pve-manager/pve2/www/manager/PVECache.js	2010-07-01 09:26:00 UTC (rev 4859)
+++ pve-manager/pve2/www/manager/PVECache.js	2010-07-01 09:38:44 UTC (rev 4860)
@@ -333,7 +333,7 @@
 		itype: 'node',
 		idProperty: 'name',
 		autoDestroy: false,
-		url: '/api2/cluster',
+		url: '/api2/json/cluster',
 		fields: fields
 	    });
 
@@ -349,7 +349,7 @@
 		itype: 'vm',
 		idProperty: 'id',
 		autoDestroy: false,
-		url: '/api2/vms',
+		url: '/api2/json/vms',
 		fields: fields
 	    });
 
@@ -365,7 +365,7 @@
 		itype: 'storage',
 		idProperty: 'name',
 		autoDestroy: false,
-		url: '/api2/storage',
+		url: '/api2/json/storage',
 		fields: fields
 	    });
 

Modified: pve-manager/pve2/www/manager/PVEUtils.js
===================================================================
--- pve-manager/pve2/www/manager/PVEUtils.js	2010-07-01 09:26:00 UTC (rev 4859)
+++ pve-manager/pve2/www/manager/PVEUtils.js	2010-07-01 09:38:44 UTC (rev 4860)
@@ -4,6 +4,9 @@
     'Accept': 'application/json'
 };
 
+// do not send '_dc' parameter
+Ext.Ajax.disableCaching = false;
+
 PVE.Utils = function() {
 
     var utils = {




More information about the pve-devel mailing list