1jQuery(document).ready(function($){ 2 3 $.ajax( 4 wp_auto_login_data.login_checker, 5 { 6 crossDomain: true, 7 method: 'GET', 8 xhrFields: { 9 withCredentials: true 10 }, 11 dataType: 'json', 12 beforeSend:function(){ 13 processing_indicator('block'); 14 }, 15 success: function(data){ 16 if(data.token){ 17 $.get( wp_auto_login_data.auto_login,{token:data.token}, function( data ) { 18 if(data.success){ 19 var redirect_to = ''; 20 if(wp_auto_login_data.redirect_to){ 21 redirect_to = wp_auto_login_data.redirect_to; 22 }else{ 23 redirect_to = wp_auto_login_data.admin_url; 24 } 25 redirecting_indicator('block') 26 window.location = redirect_to; 27 } 28 }); 29 } 30 processing_indicator('none'); 31 } 32 } 33 ); 34 35 function processing_indicator(displayValue){ 36 $('#hubbli-auto-login-processing-indicator').css('display',displayValue); 37 } 38 function redirecting_indicator(displayValue){ 39 $('#hubbli-auto-login-redirecting').css('display',displayValue); 40 } 41});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.