Author: ivaynberg
Date: Mon May  4 17:13:28 2009
New Revision: 771361

URL: http://svn.apache.org/viewvc?rev=771361&view=rev
Log:
WICKET-2252

Modified:
    
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/wicket-autocomplete.js

Modified: 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/wicket-autocomplete.js
URL: 
http://svn.apache.org/viewvc/wicket/branches/wicket-1.3.x/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/wicket-autocomplete.js?rev=771361&r1=771360&r2=771361&view=diff
==============================================================================
--- 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/wicket-autocomplete.js
 (original)
+++ 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/wicket-autocomplete.js
 Mon May  4 17:13:28 2009
@@ -84,7 +84,7 @@
         objonchangeoriginal=obj.onchange; 
         obj.onchange=function(event){
                if(mouseactive==1)return false;
-               if(typeof objonchangeoriginal=="function")objonchangeoriginal();
+               if(typeof 
objonchangeoriginal=="function")objonchangeoriginal.apply(this,[event]);
        }
         objonchange=obj.onchange;
                 
@@ -94,7 +94,7 @@
                        return killEvent(event);
                }
                hideAutoComplete();
-               if(typeof objonblur=="function")objonblur();
+               if(typeof objonblur=="function")objonblur.apply(this,[event]);
         }
        
        obj.onfocus=function(event){
@@ -105,7 +105,7 @@
                     updateChoices();
                 }
             }
-               if(typeof objonfocus=="function")objonfocus();
+               if(typeof objonfocus=="function")objonfocus.apply(this,[event]);
         }
 
         obj.onkeydown=function(event){
@@ -140,7 +140,7 @@
                         var value = getSelectedValue();
                         if(handleSelection(value)) {
                           obj.value = value;
-                          if(typeof objonchange=="function") 
objonchange(event);
+                          if(typeof objonchange=="function") 
objonchange.apply(this,[event]);
                         }
                         hideAutoComplete();
                         hidingAutocomplete = 1;
@@ -149,7 +149,7 @@
                         hidingAutocomplete = 1;
                     }
                     mouseactive = 0;
-                    if(typeof objonkeydown=="function") objonkeydown(event);
+                    if(typeof objonkeydown=="function") 
objonkeydown.apply(this,[event]);
                     return true;
                 break;
                 default:
@@ -174,7 +174,7 @@
                 default:
                    updateChoices();
             }
-                       if(typeof objonkeyup=="function")objonkeyup(event);
+                       if(typeof 
objonkeyup=="function")objonkeyup.apply(this,[event]);
             return null;
         }
 
@@ -185,7 +185,7 @@
                                return killEvent(event);
                 }
             }
-                       if(typeof 
objonkeypress=="function")objonkeypress(event);
+                       if(typeof 
objonkeypress=="function")objonkeypress.apply(this,[event]);
         }
     }
 
@@ -359,7 +359,7 @@
                 var value = getSelectedValue();
                 if(value = handleSelection(value)) {
                   wicketGet(elementId).value = value;
-                  if(typeof objonchange=="function") objonchange();
+                  if(typeof objonchange=="function") 
objonchange.apply(this,[event]);
                 }
                 hideAutoComplete();
             };


Reply via email to