diff options
author | ctrlaltca <ctrlaltca@gmail.com> | 2014-03-12 17:46:07 +0100 |
---|---|---|
committer | ctrlaltca <ctrlaltca@gmail.com> | 2014-03-12 17:46:07 +0100 |
commit | b0de32301a99e94bf85facf9bcaedbf760e32469 (patch) | |
tree | bb761156f5e16e0ffa6d49e46b7d5576cfc1da67 /framework/Web/UI/TClientScriptManager.php | |
parent | 4ce02f6973aa40c313364b5ff7990f2244309790 (diff) | |
parent | b2de810e574634c3b443ff5c5ccef5879e3caffd (diff) |
Merge pull request #501 from david0/issue-499
Fix: avoid unnecessary scrolling
Diffstat (limited to 'framework/Web/UI/TClientScriptManager.php')
-rw-r--r-- | framework/Web/UI/TClientScriptManager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/UI/TClientScriptManager.php b/framework/Web/UI/TClientScriptManager.php index 4bef0e08..937bd84e 100644 --- a/framework/Web/UI/TClientScriptManager.php +++ b/framework/Web/UI/TClientScriptManager.php @@ -341,7 +341,7 @@ class TClientScriptManager extends TApplicationComponent $this->registerPradoScriptInternal('jquery'); if($target instanceof TControl) $target=$target->getClientID(); - $this->_endScripts['prado:focus'] = 'new Prado.Element.scrollTo(\''.$target.'\'); jQuery(\'#'.$target.'\').focus();'; + $this->_endScripts['prado:focus'] = 'jQuery(\'#'.$target.'\').focus();'; $params=func_get_args(); $this->_page->registerCachingAction('Page.ClientScript','registerFocusControl',$params); |