From ae45ed65c63883c9aef9b91c2194134a2823a740 Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Thu, 26 Jul 2012 14:41:37 -0700 Subject: [PATCH] VPC tier UI: Fix loading state for other actions Fix actions other than the add VM action, whose loading state was never removed --- ui/scripts/ui-custom/vpc.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ui/scripts/ui-custom/vpc.js b/ui/scripts/ui-custom/vpc.js index 72a21774b24..c74603583a6 100644 --- a/ui/scripts/ui-custom/vpc.js +++ b/ui/scripts/ui-custom/vpc.js @@ -440,10 +440,11 @@ }); updateVMLoadingState(); - } - - else if (actionID == 'remove') { //remove tier + } else if (actionID == 'remove') { //remove tier + $loading.remove(); $tier.remove(); + } else { + $loading.remove(); } }, @@ -454,6 +455,8 @@ function(args) { if (actionID == 'addVM') { updateVMLoadingState(); + } else { + $loading.remove(); } } );