WordPress.org

Making WordPress.org

Changeset 305


Ignore:
Timestamp:
01/22/2014 04:54:56 PM (7 years ago)
Author:
nacin
Message:

Trac: Remove onbeforeunload before Preview/Submit. see #290.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js

    r304 r305  
    155155                    return 'The changes you made will be lost if you navigate away from this page.';
    156156                };
     157                $( '.buttons' ).on( 'click', 'input', function() {
     158                    window.onbeforeunload = null;
     159                });
    157160            }
    158161
Note: See TracChangeset for help on using the changeset viewer.