Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#3228 closed bug (fixed)

Slider fire beforeunload event

Reported by: Cloudream Owned by: paul
Priority: major Milestone: 1.6rc2
Component: ui.slider Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:

Description

$(window).bind("beforeunload",function(){alert("fired");}); $("#slider").slider();

move handle will fire beforeunload in IE7

Change History (5)

comment:1 Changed 9 years ago by Cloudream

href="javascript:void(0)" in handle cause this problem.

comment:2 Changed 9 years ago by paul

Resolution: fixed
Status: newclosed

Fixed in r688.

comment:3 Changed 9 years ago by Cloudream

Milestone: TBD1.6
Resolution: fixed
Status: closedreopened

I think it should be

.bind('click', function(e) { e.preventDefault(); })

but not

.bind('click', function() { return false; })

jQuery core fixes this event cross browsers.

comment:4 Changed 9 years ago by paul

Resolution: fixed
Status: reopenedclosed

Good idea, fixed

comment:5 Changed 8 years ago by rdworth

Milestone: 1.61.6rc2
Note: See TracTickets for help on using tickets.