From c3c0dc28d3e9964bddbe66dac34080cf9e1dd05c Mon Sep 17 00:00:00 2001 From: wei <> Date: Wed, 9 May 2007 04:21:41 +0000 Subject: Fixed #598 --- .../tickets/protected/pages/Ticket603.php | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket603.php (limited to 'tests/FunctionalTests/tickets/protected/pages/Ticket603.php') diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket603.php b/tests/FunctionalTests/tickets/protected/pages/Ticket603.php new file mode 100644 index 00000000..6af0cf6d --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket603.php @@ -0,0 +1,30 @@ +_isHtml = true; + } + + public function switchContentTypeClicked( $sender, $param ) { + $this->_isHtml = !$this->_isHtml; + if ( $this->_isHtml ) { + $this->EditHtmlTextBox->EnableVisualEdit = true; + $this->EditHtmlTextBox->Text = 'somehtml'; + } else { + $this->EditHtmlTextBox->EnableVisualEdit = false; + $this->EditHtmlTextBox->Text = 'plai bla bla'; + } + } + + public function switchContentTypeCallback( $sender, $param ) { + $this->ContentPanel->render( $param->NewWriter ); + } +} + +?> \ No newline at end of file -- cgit v1.2.3