1jQuery(document).ready(function($) { 'use strict'; 2 3 // Perform AJAX login on form submit 4 $('form#login').on('submit', function(e){ 'use strict'; 5 $('form#login p.status').show().text(ajax_login_object.loadingmessage); 6 $.ajax({ 7 type: 'POST', 8 dataType: 'json', 9 url: ajax_login_object.ajaxurl, 10 data: { 11 'action': 'ajaxlogin', //calls wp_ajax_nopriv_ajaxlogin 12 'username': $('form#login #username').val(), 13 'password': $('form#login #password').val(), 14 'security': $('form#login #security').val() }, 15 success: function(data){ 16 $('form#login div.login-error').text(data.message); 17 if (data.loggedin == true){ 18 document.location.href = ajax_login_object.redirecturl; 19 } 20 if($('.login-error').text() == ''){ 21 $('form#login div.login-error').hide(); 22 }else{ 23 $('form#login div.login-error').show(); 24 } 25 } 26 }); 27 e.preventDefault(); 28 }); 29 30 if($('.login-error').text() == ''){ 31 $('form#login div.login-error').hide(); 32 }else{ 33 $('form#login div.login-error').show(); 34 } 35 36});
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.