diff options
-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 ? |