From 10ae6ed6ee263644d3d7780153520af76215d178 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 6 Dec 2005 15:47:03 +0000 Subject: --- framework/Web/UI/TClientScriptManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/Web/UI/TClientScriptManager.php') diff --git a/framework/Web/UI/TClientScriptManager.php b/framework/Web/UI/TClientScriptManager.php index bb8c44a3..03ac8479 100644 --- a/framework/Web/UI/TClientScriptManager.php +++ b/framework/Web/UI/TClientScriptManager.php @@ -97,7 +97,7 @@ class TClientScriptManager extends TComponent if(!$options || (!$options->getPerformValidation() && !$options->getTrackFocus() && $options->getClientSubmit() && $options->getActionUrl()=='')) { $this->registerPostBackScript(); - $formID=$this->_page->getForm()->getUniqueID(); + $formID=$this->_page->getForm()->getClientID(); $postback=self::POSTBACK_FUNC.'(\''.$formID.'\',\''.$control->getUniqueID().'\',\''.THttpUtility::quoteJavaScriptString($parameter).'\')'; if($options && $options->getAutoPostBack()) $postback='setTimeout(\''.THttpUtility::quoteJavaScriptString($postback).'\',0)'; @@ -308,7 +308,7 @@ class TClientScriptManager extends TComponent $str.="\n"; } if($str!=='') - $writer->write($str); + $writer->write("