diff options
author | wei <> | 2006-08-05 04:59:37 +0000 |
---|---|---|
committer | wei <> | 2006-08-05 04:59:37 +0000 |
commit | 1f5f5acf9011763a8b72748219f8275db527387e (patch) | |
tree | cb3ee739c45f9d2331f7ca61538d5e139b82aae9 /tests/FunctionalTests/features/protected/pages/FocusControl.php | |
parent | c927f9343001b456c1fa25dc541c3f1b005510f8 (diff) |
Fixed #271
Diffstat (limited to 'tests/FunctionalTests/features/protected/pages/FocusControl.php')
-rw-r--r-- | tests/FunctionalTests/features/protected/pages/FocusControl.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/FunctionalTests/features/protected/pages/FocusControl.php b/tests/FunctionalTests/features/protected/pages/FocusControl.php new file mode 100644 index 00000000..d78f28c4 --- /dev/null +++ b/tests/FunctionalTests/features/protected/pages/FocusControl.php @@ -0,0 +1,17 @@ +<?php
+
+class FocusControl extends TPage
+{
+ function doFocus($sender, $param)
+ {
+ $selected = $this->list->SelectedIndex;
+ if($selected >= 0)
+ {
+ $id = "button".($selected+1);
+ $controlID = $this->{$id}->ClientID;
+ $this->ClientScript->registerFocusControl($controlID);
+ }
+ }
+}
+
+?>
\ No newline at end of file |