diff options
author | ctrlaltca@gmail.com <> | 2011-05-15 18:00:04 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2011-05-15 18:00:04 +0000 |
commit | 6091b82b4892e888092342a188a81832db8765d7 (patch) | |
tree | 7211f4e7fbaddb0def8c165560fd09bec1c06291 /framework/Web/UI/WebControls/TWizard.php | |
parent | 37c9cac197c788e7bdb0aa9b454a199068d2f18e (diff) |
patch for #58
Diffstat (limited to 'framework/Web/UI/WebControls/TWizard.php')
-rw-r--r-- | framework/Web/UI/WebControls/TWizard.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/framework/Web/UI/WebControls/TWizard.php b/framework/Web/UI/WebControls/TWizard.php index 428b4c80..4252a159 100644 --- a/framework/Web/UI/WebControls/TWizard.php +++ b/framework/Web/UI/WebControls/TWizard.php @@ -954,6 +954,8 @@ class TWizard extends TWebControl implements INamingContainer if($buttonStyle!==null)
$style->mergeWith($buttonStyle);
$style->apply($button);
+ if($activeStepType===TWizardStepType::Start)
+ $this->getPage()->getClientScript()->registerDefaultButton($this, $button);
}
// apply styles to finish navigation buttons
@@ -977,6 +979,8 @@ class TWizard extends TWebControl implements INamingContainer if($buttonStyle!==null)
$style->mergeWith($buttonStyle);
$style->apply($button);
+ if($activeStepType===TWizardStepType::Finish)
+ $this->getPage()->getClientScript()->registerDefaultButton($this, $button);
}
// apply styles to step navigation buttons
@@ -1000,6 +1004,8 @@ class TWizard extends TWebControl implements INamingContainer if($buttonStyle!==null)
$style->mergeWith($buttonStyle);
$style->apply($button);
+ if($activeStepType===TWizardStepType::Step)
+ $this->getPage()->getClientScript()->registerDefaultButton($this, $button);
}
}
|