diff options
author | ctrlaltca@gmail.com <> | 2012-03-24 22:52:29 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2012-03-24 22:52:29 +0000 |
commit | 76d7735f8de76dfc4fa0ff671e5f18ae025bbcf3 (patch) | |
tree | aa7e542d5aeeb4d9a09769cc3beb45d6aaf180fe /framework/Web/UI/WebControls/TTabPanel.php | |
parent | fd1a685c494bc183adae9b1748ee79e66c4ff7c2 (diff) |
Committer 2nd part of patch for #391
Diffstat (limited to 'framework/Web/UI/WebControls/TTabPanel.php')
-rw-r--r-- | framework/Web/UI/WebControls/TTabPanel.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/Web/UI/WebControls/TTabPanel.php b/framework/Web/UI/WebControls/TTabPanel.php index a1ddca39..558ead4e 100644 --- a/framework/Web/UI/WebControls/TTabPanel.php +++ b/framework/Web/UI/WebControls/TTabPanel.php @@ -443,11 +443,11 @@ class TTabPanel extends TWebControl implements IPostBackDataHandler $viewVis=array();
foreach($this->getViews() as $view)
{
- $viewIDs[]=$view->getClientID();
- $viewVis[]=$view->getVisible();
+ $viewIDs[]=TJavaScript::encode($view->getClientID());
+ $viewVis[]=TJavaScript::encode($view->getVisible());
}
- $options['Views']='[\''.implode('\',\'',$viewIDs).'\']';
- $options['ViewsVis']='[\''.implode('\',\'',$viewVis).'\']';
+ $options['Views']=TJavaScript::quoteJsLiteral('['.implode(',',$viewIDs).']');
+ $options['ViewsVis']=TJavaScript::quoteJsLiteral('['.implode(',',$viewVis).']');
return $options;
}
|