Skip to main content

Bug Tracker

Side navigation

#4418 closed bug (duplicate)

Opened March 25, 2009 01:11PM UTC

Closed June 12, 2010 03:56AM UTC

beforeunload doenst work correctly

Reported by: Jorik Owned by:
Priority: major Milestone: 1.4
Component: unfiled Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:
Description

$(window).bind("beforeunload") and unbind() does not work correctly. The only way to use it now is good old javascript.

It now only works if you return false in the jquery way:

$(window).bind("beforeunload", function() { return false; })

but this shows the message 'false', and if you return a string the function doenst work anymore.

the way to let is work without jquery:

bind event

window.onbeforeunload = function() {

return "Save your data!";

};

unbind the event

window.onbeforeunload = null;

Attachments (0)
Change History (2)

Changed June 05, 2009 12:30AM UTC by serious comment:1

This is a duplicate of #4106 which was re-opened by Brandon.

Changed June 12, 2010 03:56AM UTC by dmethvin comment:2

resolution: → duplicate
status: newclosed