diff --git a/ui/scripts/ui-custom/instanceWizard.js b/ui/scripts/ui-custom/instanceWizard.js index 527dc105474..e8f0c45b20b 100644 --- a/ui/scripts/ui-custom/instanceWizard.js +++ b/ui/scripts/ui-custom/instanceWizard.js @@ -1004,6 +1004,10 @@ } }; + $wizard.bind('cloudStack.instanceWizard.showStep', function(e, args) { + showStep(args.index, { refresh: true }); + }); + // Go to specified step in wizard, // updating nav items and diagram var showStep = function(index, options) { @@ -1020,6 +1024,10 @@ var stepID = $targetStep.attr('wizard-step-id'); var formData = cloudStack.serializeForm($form); + if (options.refresh) { + $targetStep.removeClass('loaded'); + } + if (!$targetStep.hasClass('loaded')) { // Remove previous content if (!$targetStep.hasClass('review')) { // Review row content is not autogenerated