Author: phuong_vu
Date: 2011-01-03 22:28:41 -0500 (Mon, 03 Jan 2011)
New Revision: 5672
Modified:
portal/branches/branch-GTNPORTAL-1731/web/eXoResources/src/main/webapp/javascript/eXo/webui/UICalendar.js
portal/branches/branch-GTNPORTAL-1731/webui/core/src/main/java/org/exoplatform/webui/form/UIFormDateTimeInput.java
Log:
GTNPORTAL-1403 Calendar appearing even on non-focus
Modified:
portal/branches/branch-GTNPORTAL-1731/web/eXoResources/src/main/webapp/javascript/eXo/webui/UICalendar.js
===================================================================
---
portal/branches/branch-GTNPORTAL-1731/web/eXoResources/src/main/webapp/javascript/eXo/webui/UICalendar.js 2011-01-04
02:19:29 UTC (rev 5671)
+++
portal/branches/branch-GTNPORTAL-1731/web/eXoResources/src/main/webapp/javascript/eXo/webui/UICalendar.js 2011-01-04
03:28:41 UTC (rev 5672)
@@ -162,6 +162,14 @@
}
}
+UICalendar.prototype.onTabOut =function(event) {
+ var keyCode = event.keyCode;
+ //identify the tab key:
+ if (keyCode == 9) {
+ eXo.webui.UICalendar.hide();
+ }
+};
+
UICalendar.prototype.hide = function() {
if (this.dateField) {
document.getElementById(this.calendarId).firstChild.style.display = 'none' ;
Modified:
portal/branches/branch-GTNPORTAL-1731/webui/core/src/main/java/org/exoplatform/webui/form/UIFormDateTimeInput.java
===================================================================
---
portal/branches/branch-GTNPORTAL-1731/webui/core/src/main/java/org/exoplatform/webui/form/UIFormDateTimeInput.java 2011-01-04
02:19:29 UTC (rev 5671)
+++
portal/branches/branch-GTNPORTAL-1731/webui/core/src/main/java/org/exoplatform/webui/form/UIFormDateTimeInput.java 2011-01-04
03:28:41 UTC (rev 5672)
@@ -234,6 +234,6 @@
w.write(value_.toString());
w.write('\'');
}
- w.write(" onclick='event.cancelBubble = true'/>");
+ w.write(" onclick='event.cancelBubble = true'
onkeydown='eXo.webui.UICalendar.onTabOut(event)'/>");
}
}
Show replies by date