[gatein-commits] gatein SVN: r4183 - portal/branches/branch-r4047/web/eXoResources/src/main/webapp/javascript/eXo/portal.

do-not-reply at jboss.org do-not-reply at jboss.org
Tue Sep 14 03:58:18 EDT 2010


Author: phuong_vu
Date: 2010-09-14 03:58:17 -0400 (Tue, 14 Sep 2010)
New Revision: 4183

Modified:
   portal/branches/branch-r4047/web/eXoResources/src/main/webapp/javascript/eXo/portal/UIPortalControl.js
Log:
GTNPORTAL-1433 Have problem when search page or user does not exits in list by used enter key press

Modified: portal/branches/branch-r4047/web/eXoResources/src/main/webapp/javascript/eXo/portal/UIPortalControl.js
===================================================================
--- portal/branches/branch-r4047/web/eXoResources/src/main/webapp/javascript/eXo/portal/UIPortalControl.js	2010-09-14 07:53:33 UTC (rev 4182)
+++ portal/branches/branch-r4047/web/eXoResources/src/main/webapp/javascript/eXo/portal/UIPortalControl.js	2010-09-14 07:58:17 UTC (rev 4183)
@@ -19,7 +19,6 @@
 
 function UIPortalControl() {
   this.scrollManagers = new Array();
-  this.t = 0;
 };
 /**
  * Change state of window
@@ -70,18 +69,20 @@
  if(e.keyCode) code = e.keyCode;
  else if (e.which) code = e.which;
  if(code ==13) {
-   if(this.t != 13) {
-     var uiPortalLoginFormAction = document.getElementById("UIPortalLoginFormAction");
-     if(uiPortalLoginFormAction) {
-       uiPortalLoginFormAction.onclick() ;
-     }
-     else
-     {
-       if(executeScript)
-         eval(executeScript);
-     }
+	 if (window.event) {
+		 e.returnValue = false;
+	 } else {
+		 e.preventDefault();
+	 }
+	 var uiPortalLoginFormAction = document.getElementById("UIPortalLoginFormAction");
+   if(uiPortalLoginFormAction) {
+     uiPortalLoginFormAction.onclick() ;
    }
-   this.t = code;
+   else
+   {
+     if(executeScript)
+       eval(executeScript);
+   }
  }
 };
 



More information about the gatein-commits mailing list