Opened 7 years ago

Closed 7 years ago

Last modified 7 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 7 years ago by Cloudream

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

comment:2 Changed 7 years ago by paul

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r688.

comment:3 Changed 7 years ago by Cloudream

  • Milestone changed from TBD to 1.6
  • Resolution fixed deleted
  • Status changed from closed to reopened

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 7 years ago by paul

  • Resolution set to fixed
  • Status changed from reopened to closed

Good idea, fixed

comment:5 Changed 7 years ago by rdworth

  • Milestone changed from 1.6 to 1.6rc2
Note: See TracTickets for help on using tickets.