From 2b7ed1f9e2b57e346226a1a644e5019cc3deecab Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Thu, 23 Feb 2012 14:46:14 -0800 Subject: [PATCH] bug 12767 Hide previous button on first step of instance wizard status 12767: resolved fixed reviewed-by: jessica --- ui/scripts/ui-custom/instanceWizard.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/scripts/ui-custom/instanceWizard.js b/ui/scripts/ui-custom/instanceWizard.js index 4302206f236..513c47c6e07 100644 --- a/ui/scripts/ui-custom/instanceWizard.js +++ b/ui/scripts/ui-custom/instanceWizard.js @@ -581,6 +581,11 @@ $nextButton.addClass('final'); } + // Hide previous button on first step + var $previousButton = $wizard.find('.button.previous'); + if (index == 1) $previousButton.hide(); + else $previousButton.show(); + // Update progress bar var $targetProgress = $progress.removeClass('active').filter(function() { return $(this).index() <= targetIndex;