Author: jcompagner
Date: Thu Jun 28 06:41:50 2007
New Revision: 551552

URL: http://svn.apache.org/viewvc?view=rev&rev=551552
Log:
getFocusedElement() method

Modified:
    
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js

Modified: 
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js?view=diff&rev=551552&r1=551551&r2=551552
==============================================================================
--- 
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js
 (original)
+++ 
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js
 Thu Jun 28 06:41:50 2007
@@ -1649,6 +1649,16 @@
                Wicket.Log.info("focus set on " + lastFocusId + " from 
serverside");
        },
        
+       getFocusedElement: function()
+       {
+               if (typeof(lastFocusId) != "undefined" && lastFocusId != "" && 
lastFocusId != null)
+               {
+                       Wicket.Log.info("returned focused element: " + 
Wicket.$(lastFocusId)); 
+                       return Wicket.$(lastFocusId);
+               }
+               return;
+       },
+       
        requestFocus: function()
        {
                if (typeof(lastFocusId) != "undefined" && lastFocusId != "" && 
lastFocusId != null)


Reply via email to