summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/features/protected/pages/FocusControl.php
blob: e534a92a6ff6a3e41610189fef40bb5e33f8c74a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
		}
	}
}

?>