1$(document).ready(function(){ 2 $(document).on('submit', 'form[data-xhr]', function(event){ 3 event.preventDefault(); 4 var action = $(this).attr('action'); 5 var method = $(this).attr('method'); 6 var formData = new FormData($(this)[0]); 7 $.ajax({ 8 url: action, 9 type: method, 10 dataType: 'json', 11 data: formData, 12 cache: false, 13 contentType: false, 14 processData: false 15 }) 16 .done(function(result){ 17 18 var options={ 19 title: result.t, 20 text: result.m, 21 type: result.s, 22 confirmButtonText: 'Tamam' 23 }; 24 if (result.r!=null) { 25 if(result.su==null){ 26 var sure=3000; 27 }else{sure=result.su;} 28 options['timer'] = sure; 29 options['showConfirmButton'] = false; 30 setTimeout(function(){ 31 window.location.href = result.r; 32 },sure); 33 } 34 swal(options); 35 }) 36 .fail(function(){ 37 swal({ 38 title: 'Hata oluÅtu!', 39 text: 'İstek gerçekleÅtirilemedi', 40 type: 'error', 41 confirmButtonText: "Tamam" 42 }); 43 }) 44 }); 45});
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.