From 103ede07930da59963307c296414ba0dae3d8f15 Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Wed, 7 Dec 2011 15:36:37 -0800 Subject: [PATCH] bug 12410 Bug was caused by a 'cloudStack.fullRefresh' event being triggered on a non-existent edit widget, for a non-existent project. I changed the widget to only refresh if the current instance is visible (i.e., most likely the user still has active data for it) --- ui/scripts/ui/multiEdit.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/scripts/ui/multiEdit.js b/ui/scripts/ui/multiEdit.js index 2bb9a1f5fd5..526542aa701 100644 --- a/ui/scripts/ui/multiEdit.js +++ b/ui/scripts/ui/multiEdit.js @@ -622,7 +622,9 @@ getData(); $(window).bind('cloudStack.fullRefresh', function(event) { - getData(); + if ($multi.is(':visible')) { + getData(); + } }); $multi.bind('change select', function() {