From 76d7735f8de76dfc4fa0ff671e5f18ae025bbcf3 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Sat, 24 Mar 2012 22:52:29 +0000 Subject: Committer 2nd part of patch for #391 --- framework/Web/UI/WebControls/TTabPanel.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/Web/UI/WebControls/TTabPanel.php') 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; } -- cgit v1.2.3