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