#6081 closed bug (worksforme)
Datepicker submits page when embedded in a dialog in IE 8
Reported by: | yeksa | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ui.datepicker | Version: | 1.8.2 |
Keywords: | datepicker, dialog, submits | Cc: | |
Blocked by: | Blocking: |
Description
had a page with date pickers workign fine on it when I opened a dialogue box and activated a datepicker in it changing the date by selecting a entry from the month table would submit the page in IE
I used the following to fix on my site.
Thanks
$("#eventDate").datepicker({ dateFormat: 'd-M-yy', onClose: function(dateText, inst) { agent = jQuery.browser; if(agent.msie) { event.cancelBubble = true; } else { event.stopPropagation(); } return false; } });
Change History (3)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
This is working fine for me. Please include a full test page showing the problem.
Note: See
TracTickets for help on using
tickets.
dam on testing with FF4.06beta the code needs to be the following as it works correctly in firefox and not in IE