[ http://issues.apache.org/jira/browse/TAPESTRY-301?page=all ]
Brian K. Wallace updated TAPESTRY-301: -------------------------------------- Assign To: Brian K. Wallace > Datepicker pops-up when textfield disabled > ------------------------------------------ > > Key: TAPESTRY-301 > URL: http://issues.apache.org/jira/browse/TAPESTRY-301 > Project: Tapestry > Type: Bug > Components: Framework > Versions: 3.0.3 > Environment: WinXP, Tomcat5, Pentium4, IE, Firefox > Reporter: Filip Balas > Assignee: Brian K. Wallace > Priority: Minor > Fix For: 3.0.5 > Attachments: datePicker.GIF > > When you create a some javascript to dynamically enable/disable the > textbox built into the datepicker, the datePicker still pops-up the > calender when the icon is clicked even when the textfield is disabled. > To me this seems counter-intuitive... if the field is disabled the > calender should be disabled as well. > It appears to me that the file DatePicker.script should be changed > FROM: > <let key="buttonOnclickHandler"> > javascript:${calendarObject}.toggle(document.${formName}.${name}); > </let> > TO: > <let key="buttonOnclickHandler"> > javascript:if(!document.${formName}.${name}.disabled) { > ${calendarObject}.toggle(document.${formName}.${name});} > </let> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]