goszowski / jquery-plugin-form-navigation-confirmation

Automatically exported from code.google.com/p/jquery-plugin-form-navigation-confirmation
0 stars 0 forks source link

change event binding to use jquery bind #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
moving the event binding to the jquery binding is important as there may be 
multiple beforeunload events.  This also fixes an issue on IE

        $(window).bind("beforeunload", function (event) {
                if (global_formNavigate == true) {  event.cancelBubble = true;  }  else  { return message;              }
        });

Original issue reported on code.google.com by abrin...@gmail.com on 21 Apr 2011 at 2:51