diff options
author | ctrlaltca@gmail.com <> | 2012-03-23 18:15:03 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2012-03-23 18:15:03 +0000 |
commit | e0de4ef01a644bccae872f60b3584a1755dcbc1f (patch) | |
tree | ec7aef2e1ea355f7dd9a89b2090beb54024502ee /framework/Web/UI/WebControls/TSlider.php | |
parent | 942bee46430fe06e17200a9f5a649768081d6eae (diff) |
Fixed #390 and #391
Diffstat (limited to 'framework/Web/UI/WebControls/TSlider.php')
-rw-r--r-- | framework/Web/UI/WebControls/TSlider.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/Web/UI/WebControls/TSlider.php b/framework/Web/UI/WebControls/TSlider.php index da2189cb..f453e3ac 100644 --- a/framework/Web/UI/WebControls/TSlider.php +++ b/framework/Web/UI/WebControls/TSlider.php @@ -457,7 +457,7 @@ class TSlider extends TWebControl implements IPostBackDataHandler, IDataRenderer $options['axis'] = strtolower($this->getDirection());
$options['maximum'] = $maxValue;
$options['minimum'] = $minValue;
- $options['range'] = 'javascript:$R('.$minValue.",".$maxValue.")";
+ $options['range'] = TJavascript::quoteFunction('$R('.$minValue.",".$maxValue.")");
$options['sliderValue'] = $this->getValue();
$options['disabled'] = !$this->getEnabled();
$values=$this->getValues();
@@ -520,7 +520,7 @@ class TSliderClientScript extends TClientSideOptions */
public function setOnChange($javascript)
{
- $code="javascript: function (value) { {$javascript} }";
+ $code=TJavascript::quoteFunction("function (value) { {$javascript} }");
$this->setFunction('onChange', $code);
}
@@ -537,7 +537,7 @@ class TSliderClientScript extends TClientSideOptions */
public function setOnSlide($javascript)
{
- $code="javascript: function (value) { {$javascript} }";
+ $code=TJavascript::quoteFunction("function (value) { {$javascript} }");
$this->setFunction('onSlide', $code);
}
|