Skip to main content

Search and Top Navigation

#3228 closed bug (fixed)

Opened August 18, 2008 10:06PM UTC

Closed September 19, 2008 09:20AM UTC

Last modified November 19, 2008 04:36AM UTC

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

Attachments (0)
Change History (5)

Changed August 18, 2008 10:09PM UTC by Cloudream comment:1

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

Changed September 18, 2008 09:30AM UTC by paul comment:2

resolution: → fixed
status: newclosed

Fixed in r688.

Changed September 18, 2008 01:07PM UTC by Cloudream comment:3

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.

Changed September 19, 2008 09:20AM UTC by paul comment:4

resolution: → fixed
status: reopenedclosed

Good idea, fixed

Changed November 19, 2008 04:36AM UTC by rdworth comment:5

milestone: 1.61.6rc2