From 3f7580240415e6c5b9c8befac5f69c4ddbae8840 Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Fri, 16 Dec 2011 11:40:46 -0800 Subject: [PATCH] bug 12599 Fix refresh event being called on a nonexistent widget, giving error status 12599: fixed resolved --- ui/scripts/ui-custom/physicalResources.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/scripts/ui-custom/physicalResources.js b/ui/scripts/ui-custom/physicalResources.js index 84557f5579a..21bf89b4a81 100644 --- a/ui/scripts/ui-custom/physicalResources.js +++ b/ui/scripts/ui-custom/physicalResources.js @@ -45,7 +45,9 @@ }; $(window).bind('cloudStack.fullRefresh cloudStack.updateResources', function() { - getData(); + if ($dashboard.is(':visible')) { + getData(); + } }); return function(args) {