From d9ee6a91d3ea25df7270fd181a82ef6e69d203bd Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Tue, 9 Jun 2015 12:57:56 +0200 Subject: [PATCH] feature #3748: Fix element context --- src/sunstone/public/app/tabs/vms-tab/panels/capacity.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sunstone/public/app/tabs/vms-tab/panels/capacity.js b/src/sunstone/public/app/tabs/vms-tab/panels/capacity.js index d626da4777..1fc487b032 100644 --- a/src/sunstone/public/app/tabs/vms-tab/panels/capacity.js +++ b/src/sunstone/public/app/tabs/vms-tab/panels/capacity.js @@ -76,9 +76,10 @@ define(function(require) { } function _onShow(context) { + var that = this; OpenNebulaVM.monitor({ data: { - id: this.element.ID, + id: that.element.ID, monitor: { monitor_resources : "CPU,MEMORY" }