Changeset 32052
- Timestamp:
- 04/06/2015 12:59:16 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/updates.js
r31982 r32052 511 511 } ); 512 512 513 /* 514 * If an update is on-going and a user attempts to leave the page, 515 * open an "Are you sure?" alert. 516 */ 517 $( window ).on( 'beforeunload', function() { 518 if ( wp.updates.updateLock ) { 519 return wp.updates.l10n.beforeunload; 520 } 521 }); 522 513 523 })( jQuery, window.wp, window.pagenow, window.ajaxurl );
Note: See TracChangeset
for help on using the changeset viewer.