summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorwei <>2007-05-10 23:37:57 +0000
committerwei <>2007-05-10 23:37:57 +0000
commit42c84379ccf7bc54de89f9d88235d061ef75cad7 (patch)
treee2417d851e5dee48b019692090f4e1abbe1fab24 /framework
parent527e422d8e3709a1e86efda3c5a50fbefe2d5423 (diff)
Fixed #578
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/UI/WebControls/THtmlArea.php14
1 files changed, 6 insertions, 8 deletions
diff --git a/framework/Web/UI/WebControls/THtmlArea.php b/framework/Web/UI/WebControls/THtmlArea.php
index 19971eed..8145c9d3 100644
--- a/framework/Web/UI/WebControls/THtmlArea.php
+++ b/framework/Web/UI/WebControls/THtmlArea.php
@@ -284,14 +284,6 @@ class THtmlArea extends TTextBox
$this->setViewState('EnableCompression', TPropertyValue::ensureBoolean($value));
}
- public function onPreRender($param)
- {
- $this->loadJavascriptLibrary();
- if($this->getEnableCompression())
- $this->preLoadCompressedScript();
- $this->applyJavascriptFixes();
- }
-
/**
* Adds attribute name-value pairs to renderer.
* This method overrides the parent implementation by registering
@@ -305,6 +297,12 @@ class THtmlArea extends TTextBox
$writer->addAttribute('id',$this->getClientID());
$this->registerEditorClientScript($writer);
}
+
+ $this->loadJavascriptLibrary();
+ if($this->getEnableCompression())
+ $this->preLoadCompressedScript();
+ $this->applyJavascriptFixes();
+
parent::addAttributesToRender($writer);
}