summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorwei <>2006-08-05 04:59:37 +0000
committerwei <>2006-08-05 04:59:37 +0000
commit1f5f5acf9011763a8b72748219f8275db527387e (patch)
treecb3ee739c45f9d2331f7ca61538d5e139b82aae9 /framework
parentc927f9343001b456c1fa25dc541c3f1b005510f8 (diff)
Fixed #271
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/UI/TClientScriptManager.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/framework/Web/UI/TClientScriptManager.php b/framework/Web/UI/TClientScriptManager.php
index 9a83c550..75effa50 100644
--- a/framework/Web/UI/TClientScriptManager.php
+++ b/framework/Web/UI/TClientScriptManager.php
@@ -194,10 +194,12 @@ class TClientScriptManager extends TApplicationComponent
*/
public function registerFocusControl($target)
{
- $this->registerPradoScript('prado');
+ $this->registerPradoScript('effects');
if($target instanceof TControl)
$target=$target->getClientID();
- $this->registerEndScript('prado:focus','Prado.Focus.setFocus("'.TJavaScript::quoteString($target).'");');
+ $id = TJavaScript::quoteString($target);
+ $script = 'new Effect.ScrollTo("'.$id.'"); Prado.Element.focus("'.$id.'");';
+ $this->registerEndScript('prado:focus',$script);
}
/**