diff options
author | ctrlaltca@gmail.com <> | 2011-06-24 22:12:36 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2011-06-24 22:12:36 +0000 |
commit | 15f6747485b5912f657c2c0fce8f41c01c70d2ad (patch) | |
tree | d2621fd086e8da91313b8880a5ad524f8518aac3 /framework/Web/UI/WebControls/THtmlArea.php | |
parent | a0d269954534e09c0b9c0f73c927b6eb764c21d9 (diff) |
merged in the patch for progressive rendering from #235; unit tests doesn't evidence any regression, but of course more proper testing is needed
Diffstat (limited to 'framework/Web/UI/WebControls/THtmlArea.php')
-rw-r--r-- | framework/Web/UI/WebControls/THtmlArea.php | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/framework/Web/UI/WebControls/THtmlArea.php b/framework/Web/UI/WebControls/THtmlArea.php index 0af7a979..b11778bd 100644 --- a/framework/Web/UI/WebControls/THtmlArea.php +++ b/framework/Web/UI/WebControls/THtmlArea.php @@ -341,6 +341,20 @@ class THtmlArea extends TTextBox }
/**
+ * Registers clientscripts
+ *
+ * This method overrides the parent implementation and is invoked before render.
+ * @param mixed event parameter
+ */
+ public function onPreRender($param)
+ {
+ parent::onPreRender($param);
+ $this->loadJavascriptLibrary();
+ if($this->getEnableCompression())
+ $this->preLoadCompressedScript();
+ }
+
+ /**
* Adds attribute name-value pairs to renderer.
* This method overrides the parent implementation by registering
* additional javacript code.
@@ -354,10 +368,6 @@ class THtmlArea extends TTextBox $this->registerEditorClientScript($writer);
}
- $this->loadJavascriptLibrary();
- if($this->getEnableCompression())
- $this->preLoadCompressedScript();
-
parent::addAttributesToRender($writer);
}
|