Ticket #19189: 19189.addEventListener.diff
File 19189.addEventListener.diff, 535 bytes (added by , 14 years ago) |
---|
-
wp-includes/js/autosave.dev.js
48 48 } 49 49 }; 50 50 51 $(window).unload(function() {51 window.addEventListener( 'unload', function() { 52 52 if ( ! autosaveLockRelease ) 53 53 return; 54 54 $.ajax({ … … 62 62 active_post_lock: $('#active_post_lock').val() 63 63 } 64 64 }); 65 } );65 }, false ); 66 66 67 67 // preview 68 68 $('#post-preview').click(function(){