// Interim login dialog (function($){ var wrap; function show() { var parent = $('#wp-auth-check'), form = $('#wp-auth-check-form'), noframe = wrap.find('.wp-auth-fallback-expired'), frame, loaded = false; if ( form.length ) { // Add unload confirmation to counter (frame-busting) JS redirects $(window).on( 'beforeunload.wp-auth-check', function(e) { e.originalEvent.returnValue = window.authcheckL10n.beforeunload; }); // Add 'sandbox' for browsers that support it, only restrict access to the top window. frame = $('