summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TClientScriptManager.php
diff options
context:
space:
mode:
authorxue <>2005-12-16 15:26:03 +0000
committerxue <>2005-12-16 15:26:03 +0000
commit47ef532b8fca6e9b8935c97aaae3253672b8455e (patch)
tree835e4e717bec50122ba383dea940b39550edcc8b /framework/Web/UI/TClientScriptManager.php
parent1d1e6bc5b41c9a95c4ada79b12aeba149887d92e (diff)
Fixed name of TConfigurationException.
Diffstat (limited to 'framework/Web/UI/TClientScriptManager.php')
-rw-r--r--framework/Web/UI/TClientScriptManager.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/Web/UI/TClientScriptManager.php b/framework/Web/UI/TClientScriptManager.php
index 6106cfbf..9537859d 100644
--- a/framework/Web/UI/TClientScriptManager.php
+++ b/framework/Web/UI/TClientScriptManager.php
@@ -104,7 +104,7 @@ class TClientScriptManager extends TComponent
if(($form=$this->_page->getForm())!==null)
$formID=$form->getClientID();
else
- throw new TInvalidConfigurationException('clientscriptmanager_form_required');
+ throw new TConfigurationException('clientscriptmanager_form_required');
$postback=self::POSTBACK_FUNC.'(\''.$formID.'\',\''.$control->getUniqueID().'\',\''.THttpUtility::quoteJavaScriptString($parameter).'\')';
if($options && $options->getAutoPostBack())
$postback='setTimeout(\''.THttpUtility::quoteJavaScriptString($postback).'\',0)';
@@ -156,7 +156,7 @@ class TClientScriptManager extends TComponent
if(($form=$this->_page->getForm())!==null)
$formID=$form->getClientID();
else
- throw new TInvalidConfigurationException('clientscriptmanager_form_required');
+ throw new TConfigurationException('clientscriptmanager_form_required');
$postback=self::POSTBACK_FUNC.'(\''.$formID.'\',\''.$control->getUniqueID().'\',\''.THttpUtility::quoteJavaScriptString($parameter).'\''.$opt.')';
if($options && $options->getAutoPostBack())
$postback='setTimeout(\''.THttpUtility::quoteJavaScriptString($postback).'\',0)';
@@ -172,7 +172,7 @@ class TClientScriptManager extends TComponent
else
{
$base = Prado::getFrameworkPath();
- $clientScripts = self::SCRIPT_DIR;
+ $clientScripts = self::SCRIPT_DIR;
$file = "{$base}/{$clientScripts}/{$scriptFile}.js";
$assetManager = $this->_page->getService()->getAssetManager();
$url= $assetManager->publishFilePath($file);