1jQuery(document).ready(function($) { 2 // Perform AJAX login on form submit 3 $('form#login').on('submit', function(e){ 4 $('form#login p.status').show().html("<div id=\"messages\"><div class=\"alert alert-success\">"+ajax_login_object.loadingmessage+"</div></div>"); 5 $.ajax({ 6 type: 'POST', 7 dataType: 'json', 8 url: ajax_login_object.ajaxurl, 9 data: { 10 'action': 'ajaxlogin', //calls wp_ajax_nopriv_ajaxlogin 11 'username': $('form#login #loginname').val(), 12 'password': $('form#login #password').val(), 13 'rememberme': $('form#login #rememberme').val(), 14 'security': $('form#login #security').val() }, 15 success: function(data){ 16 $('form#login p.status').html("<div id=\"messages\"><div class=\"alert alert-error\">"+data.message+"</div></div>"); 17 if (data.loggedin == true){ 18 $('form#login p.status').html("<div id=\"messages\"><div class=\"alert alert-success\">"+data.message+"</div></div>"); 19 document.location.href = jQuery('.redirect_login').val(); 20 } 21 } 22 }); 23 e.preventDefault(); 24 }); 25});
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.