[pve-devel] r6028 - pve-manager/pve2/www/new/qemu

svn-commits at proxmox.com svn-commits at proxmox.com
Fri May 27 11:03:54 CEST 2011


Author: dietmar
Date: 2011-05-27 11:03:54 +0200 (Fri, 27 May 2011)
New Revision: 6028

Modified:
   pve-manager/pve2/www/new/qemu/Summary.js
Log:
cleanup


Modified: pve-manager/pve2/www/new/qemu/Summary.js
===================================================================
--- pve-manager/pve2/www/new/qemu/Summary.js	2011-05-27 09:01:15 UTC (rev 6027)
+++ pve-manager/pve2/www/new/qemu/Summary.js	2011-05-27 09:03:54 UTC (rev 6028)
@@ -13,11 +13,14 @@
 	if (!vmid) 
 	    throw "no VM ID specified";
 
-	rstore = Ext.create('PVE.data.ObjectStore', { 
-	    url: "/api2/json/nodes/" + nodename + "/qemu/" + vmid + "/status",
-	    interval: 1000
-	});
+	var statusview = Ext.create('PVE.qemu.StatusView', {
+	    title: 'Status',
+	    pveSelNode: me.pveSelNode,
+	    width: 400
+	})
 
+	rstore = statusview.rstore;
+
 	var rrdurl = "/api2/png/nodes/" + nodename + "/qemu/" + vmid + "/rrd";
 
 	var vm_command = function(cmd) {
@@ -156,14 +159,8 @@
 		    width: 800,
 		    border: false,
 		    items: [
+			statusview,
 			{
-			    title: 'Status',
-			    xtype: 'pveQemuStatusView',
-			    pveSelNode: me.pveSelNode,
-			    rstore: rstore,
-			    width: 400
-			},
-			{
 			    title: 'Comments',
 			    style: 'padding-left:10px',
 			    pveSelNode: me.pveSelNode,




More information about the pve-devel mailing list