Changeset 26530
- Timestamp:
- 12/02/2013 06:46:28 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/wp-auth-check.js
r26195 r26530 5 5 6 6 function show() { 7 var parent = $('#wp-auth-check'), form = $('#wp-auth-check-form'), noframe = wrap.find('.wp-auth-fallback-expired'), frame, loaded = false; 7 var parent = $('#wp-auth-check'), 8 form = $('#wp-auth-check-form'), 9 noframe = wrap.find('.wp-auth-fallback-expired'), 10 frame, loaded = false; 8 11 9 12 if ( form.length ) { … … 69 72 70 73 // When on the Edit Post screen, speed up heartbeat after the user logs in to quickly refresh nonces 71 if ( typeof adminpage != 'undefined' && ( adminpage == 'post-php' || adminpage== 'post-new-php' ) &&72 typeof wp != 'undefined' && wp.heartbeat ) {74 if ( typeof adminpage !== 'undefined' && ( adminpage === 'post-php' || adminpage === 'post-new-php' ) && 75 typeof wp !== 'undefined' && wp.heartbeat ) { 73 76 74 wp.heartbeat. interval( 'fast', 1);77 wp.heartbeat.connectNow(); 75 78 } 76 79 … … 89 92 if ( 'wp-auth-check' in data ) { 90 93 schedule(); 91 if ( ! data['wp-auth-check'] && wrap.hasClass('hidden') ) 94 if ( ! data['wp-auth-check'] && wrap.hasClass('hidden') ) { 92 95 show(); 93 else if ( data['wp-auth-check'] && ! wrap.hasClass('hidden') )96 } else if ( data['wp-auth-check'] && ! wrap.hasClass('hidden') ) { 94 97 hide(); 98 } 95 99 } 96 100 }).on( 'heartbeat-send.wp-auth-check', function( e, data ) { 97 if ( ( new Date() ).getTime() > next ) 101 if ( ( new Date() ).getTime() > next ) { 98 102 data['wp-auth-check'] = true; 103 } 99 104 }).ready( function() { 100 105 schedule();
Note: See TracChangeset
for help on using the changeset viewer.