diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2014-01-29 21:41:52 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2014-01-29 21:41:52 +0100 |
commit | ae5c423e6b5fb35116369d4dd865606541276207 (patch) | |
tree | 2359abc54188ef762575e23b9e5937692f2f0571 | |
parent | d8c20ad55a9a0b5b0b310020d599af667792d94c (diff) |
Restored Prado.Element.focus()
-rw-r--r-- | demos/quickstart/protected/pages/GettingStarted/Upgrading32.page | 5 | ||||
-rw-r--r-- | framework/Web/Javascripts/source/prado/prado.js | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/demos/quickstart/protected/pages/GettingStarted/Upgrading32.page b/demos/quickstart/protected/pages/GettingStarted/Upgrading32.page index e6e2b1cf..4417c668 100644 --- a/demos/quickstart/protected/pages/GettingStarted/Upgrading32.page +++ b/demos/quickstart/protected/pages/GettingStarted/Upgrading32.page @@ -195,11 +195,6 @@ Porting prado to jQuery some method signatures has changed, or have been adapted <br/>// or, better, use <a href="http://modernizr.com/">Modernizr</a> </td> </tr> - <tr> - <td>Focus an element</td> - <td>Prado.Element.focus(element)</td> - <td>$(element).focus()</td> - </tr> </table> <h2>Specific controls changes</h2> diff --git a/framework/Web/Javascripts/source/prado/prado.js b/framework/Web/Javascripts/source/prado/prado.js index 1d69a034..f0eb256f 100644 --- a/framework/Web/Javascripts/source/prado/prado.js +++ b/framework/Web/Javascripts/source/prado/prado.js @@ -412,6 +412,11 @@ Prado.Element = }, op.duration); }, + focus : function(element) + { + jQuery("#"+element).focus(); + }, + /** * Sets the options for a select element. * @function ? |