[gatein-commits] gatein SVN: r4345 - epp/portal/branches/EPP_5_1_Branch/web/eXoResources/src/main/webapp/javascript/eXo/portal.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Sep 23 07:01:32 EDT 2010


Author: thomas.heute at jboss.com
Date: 2010-09-23 07:01:32 -0400 (Thu, 23 Sep 2010)
New Revision: 4345

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

Modified: epp/portal/branches/EPP_5_1_Branch/web/eXoResources/src/main/webapp/javascript/eXo/portal/UIPortalControl.js
===================================================================
--- epp/portal/branches/EPP_5_1_Branch/web/eXoResources/src/main/webapp/javascript/eXo/portal/UIPortalControl.js	2010-09-23 11:00:27 UTC (rev 4344)
+++ epp/portal/branches/EPP_5_1_Branch/web/eXoResources/src/main/webapp/javascript/eXo/portal/UIPortalControl.js	2010-09-23 11:01:32 UTC (rev 4345)
@@ -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