[
https://issues.jboss.org/browse/GTNPORTAL-1940?page=com.atlassian.jira.pl...
]
RH Bugzilla Integration commented on GTNPORTAL-1940:
----------------------------------------------------
vramik(a)redhat.com made a comment on [bug
793910|https://bugzilla.redhat.com/show_bug.cgi?id=793910]
verified:
I was able to reproduce bug in EPP5.1.1.DEV01. When I tried tabbing in EPP5.2.1.ER03 it
works fine. Calendar dialog isn't shown when user tab away from calendar field.
calender doesnt disappear if tab is used for navigation
-------------------------------------------------------
Key: GTNPORTAL-1940
URL:
https://issues.jboss.org/browse/GTNPORTAL-1940
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Reporter: Gary Hu
Assignee: kien nguyen
Labels: portal-s55, worked
Attachments: tab_error.JPG
Original Estimate: 4 hours
Remaining Estimate: 4 hours
We have a calendar field in the dialog template. Whenever that field has focus, a
calendar is shown to select the date.
But when the user moves out of calendar field using tab key from keyboard to another
field, the calendar is still displayed. Th user has to explicitly CLICK to remove the
Calendar from display.
Please see the attached screen shot.
The cause is that there is no javascript onblur event defined on the date/time field:
http://anonsvn.jboss.org/repos/gatein/epp/portal/branches/EPP_5_1_Branch/...
The following fix should help to address this issue:
Index: core/src/main/java/org/exoplatform/webui/form/UIFormDateTimeInput.java
===================================================================
--- core/src/main/java/org/exoplatform/webui/form/UIFormDateTimeInput.java (revision
6667)
+++ core/src/main/java/org/exoplatform/webui/form/UIFormDateTimeInput.java (working
copy)
@@ -234,6 +234,6 @@
w.write(value_.toString());
w.write('\'');
}
- w.write(" onclick='event.cancelBubble = true'/>");
+ w.write(" onclick='event.cancelBubble = true'
onblur='eXo.webui.UICalendar.hide();'/>");
}
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira