Author: tan_pham_dinh
Date: 2009-11-19 23:40:10 -0500 (Thu, 19 Nov 2009)
New Revision: 722
Modified:
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/webui/UITabbedDashboard.js
Log:
GTNPORTAL-248: Prevent continuous press enter button by javascript when create portal
Modified:
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/webui/UITabbedDashboard.js
===================================================================
---
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/webui/UITabbedDashboard.js 2009-11-20
02:15:19 UTC (rev 721)
+++
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/webui/UITabbedDashboard.js 2009-11-20
04:40:10 UTC (rev 722)
@@ -19,7 +19,7 @@
eXo.webui.UITabbedDashboard = {
- init : function(){},
+ init : function(){eXo.webui.UITabbedDashboard.isInRequest = false;},
renameTabLabel : function(e){
if(!e){
@@ -91,6 +91,7 @@
if(!e){
e = window.event;
}
+ if(eXo.webui.UITabbedDashboard.isInRequest) return;
var keyNum = e.keyCode;
//If user presses on ENTER button
@@ -106,6 +107,7 @@
href += "&uicomponent=UITabPaneDashboard";
href += "&op=AddDashboard";
href += "&objectId=" + newTabLabel;
+ eXo.webui.UITabbedDashboard.isInRequest = true;
window.location = href;
}
//If user presses on ESCAPE button
Show replies by date