From 3d2d1a2efcf1edc971bfa6c057a20e096f1bbdde 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 21f859e3cb2..7412250b571 100644 --- a/ui/scripts/ui-custom/vpc.js +++ b/ui/scripts/ui-custom/vpc.js @@ -433,10 +433,11 @@ }); updateVMLoadingState(); - } - - else if (actionID == 'remove') { //remove tier + } else if (actionID == 'remove') { //remove tier + $loading.remove(); $tier.remove(); + } else { + $loading.remove(); } }, @@ -447,6 +448,8 @@ function(args) { if (actionID == 'addVM') { updateVMLoadingState(); + } else { + $loading.remove(); } } );