Ticket #31610: 31610..2.patch
File 31610..2.patch, 2.0 KB (added by , 9 years ago) |
---|
-
src/wp-includes/css/wp-auth-check.css
34 34 box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 ); 35 35 } 36 36 37 @media screen and ( max-width: 380px ) { 38 #wp-auth-check-wrap #wp-auth-check { 39 left: 0; 40 width: 100%; 41 margin: 0; 42 } 43 } 44 37 45 #wp-auth-check-wrap.fallback #wp-auth-check { 38 46 max-height: 180px; 39 47 overflow: auto; … … 44 52 -webkit-background-size: 16px 16px; 45 53 background-size: 16px 16px; 46 54 height: 100%; 55 overflow: auto; 56 -webkit-overflow-scrolling: touch; 47 57 } 48 58 49 59 #wp-auth-check-wrap #wp-auth-check-form iframe { 50 height: 100%;60 height: 98%; /* Scrollbar fix */ 51 61 width: 100%; 52 overflow: auto;53 62 } 54 63 55 64 #wp-auth-check-wrap .wp-auth-check-close { -
src/wp-includes/js/wp-auth-check.js
49 49 $('#wp-auth-check-form').append( frame ); 50 50 } 51 51 52 $( 'body' ).addClass( 'modal-open' ); 52 53 wrap.removeClass('hidden'); 53 54 54 55 if ( frame ) { … … 80 81 wrap.fadeOut( 200, function() { 81 82 wrap.addClass('hidden').css('display', ''); 82 83 $('#wp-auth-check-frame').remove(); 84 $( 'body' ).removeClass( 'modal-open' ); 83 85 }); 84 86 } 85 87 … … 89 91 } 90 92 91 93 $( document ).on( 'heartbeat-tick.wp-auth-check', function( e, data ) { 92 if ( 'wp-auth-check' in data ) {94 /*if ( 'wp-auth-check' in data ) { 93 95 schedule(); 94 96 if ( ! data['wp-auth-check'] && wrap.hasClass('hidden') ) { 95 97 show(); 96 98 } else if ( data['wp-auth-check'] && ! wrap.hasClass('hidden') ) { 97 99 hide(); 98 100 } 99 } 101 }*/ 100 102 }).on( 'heartbeat-send.wp-auth-check', function( e, data ) { 101 103 if ( ( new Date() ).getTime() > next ) { 102 104 data['wp-auth-check'] = true; … … 107 109 wrap.find('.wp-auth-check-close').on( 'click', function() { 108 110 hide(); 109 111 }); 112 show(); 110 113 }); 111 114 112 115 }(jQuery));