summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/features/protected/pages/FocusControl.php
blob: d78f28c4cff94243e5f60ce8b42ed45d36020608 (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);
		}
	}
}

?>