diff options
| author | ctrlaltca <> | 2012-05-10 21:09:10 +0000 | 
|---|---|---|
| committer | ctrlaltca <> | 2012-05-10 21:09:10 +0000 | 
| commit | 0b60336c37f91d79ecaefbe0f8b86cc324264451 (patch) | |
| tree | f780d8a1fd6d9df7f3bb6676062645b4d0e06a37 /framework/Web/UI/ActiveControls | |
| parent | afaebc9ce82a6cec8cff83da781c44411838df9c (diff) | |
fix for #399, addresses ratings.js and inlineeditor.js
Diffstat (limited to 'framework/Web/UI/ActiveControls')
| -rw-r--r-- | framework/Web/UI/ActiveControls/TInPlaceTextBox.php | 19 | 
1 files changed, 19 insertions, 0 deletions
| diff --git a/framework/Web/UI/ActiveControls/TInPlaceTextBox.php b/framework/Web/UI/ActiveControls/TInPlaceTextBox.php index 47d8022e..1f19918e 100644 --- a/framework/Web/UI/ActiveControls/TInPlaceTextBox.php +++ b/framework/Web/UI/ActiveControls/TInPlaceTextBox.php @@ -268,4 +268,23 @@ class TInPlaceTextBox extends TActiveTextBox  			$this->getClientClassName(), $this->getPostBackOptions());
  	}
 +	/**
 +	 * Registers CSS and JS.
 +	 * This method is invoked right before the control rendering, if the control is visible.
 +	 * @param mixed event parameter
 +	 */
 +	public function onPreRender($param)
 +	{
 +		parent::onPreRender($param);
 +		$this->registerClientScript();
 +	}
 +
 +	/**
 +	 * Registers the relevant JavaScript.
 +	 */
 +	protected function registerClientScript()
 +	{
 +		$cs=$this->getPage()->getClientScript();
 +		$cs->registerPradoScript('inlineeditor');
 +	}
  }
 | 
