summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/Ticket278.php
blob: 86968b18c5e88df0b56617d6d4f409b0181ad31b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

class Ticket278 extends TPage
{
	function validator2_onValidate($sender, $param)
	{
		$sender->Enabled = $this->check1->Checked;
	}
	
	function validate2_onPostValidate($sender, $param)
	{
		$sender->Enabled = true;
	}
	
	function onPreRender($param)
	{
		parent::onPreRender($param);
		$this->panel1->Style = 
			$this->check1->Checked ? "display:block" : "display:none";		
	}
}