Opened 9 years ago

Closed 9 years ago

Last modified 6 years ago

#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 9 years ago by yeksa

dam on testing with FF4.06beta the code needs to be the following as it works correctly in firefox and not in IE

$("#eventDate").datepicker({ 
	dateFormat: 'd-M-yy', 
	onClose: function(dateText, inst) {
		agent = jQuery.browser;
		if(agent.msie) {
			event.cancelBubble = true;
		}
		return false;
	} 
});

comment:2 Changed 9 years ago by Scott González

Resolution: worksforme
Status: newclosed

This is working fine for me. Please include a full test page showing the problem.

comment:3 Changed 6 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.