From ae5c423e6b5fb35116369d4dd865606541276207 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Wed, 29 Jan 2014 21:41:52 +0100 Subject: Restored Prado.Element.focus() --- demos/quickstart/protected/pages/GettingStarted/Upgrading32.page | 5 ----- 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
// or, better, use Modernizr - - Focus an element - Prado.Element.focus(element) - $(element).focus() -

Specific controls changes

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 ? -- cgit v1.2.3