1jQuery(document).ready(function() { 2 jQuery('#wp-admin-bar-fastcache-main-default .fastcache-confirm-purge .ab-item').click(function(e) { 3 e.preventDefault(); 4 5 var param = ''; 6 var loc = ''; 7 var confirmMessage = fastcache_confirm.message_base + '\n\n' + fastcache_confirm.message_question + ' '; 8 9 if(jQuery(this).parent().hasClass('this')) { 10 param = 'this'; 11 loc = document.location.href; 12 confirmMessage += fastcache_confirm.message_this; 13 } 14 if(jQuery(this).parent().hasClass('all')) { 15 param = 'all'; 16 confirmMessage += fastcache_confirm.message_all; 17 } 18 if(jQuery(this).parent().hasClass('homepage')) { 19 param = 'homepage'; 20 confirmMessage += fastcache_confirm.message_homepage; 21 } 22 23 // Mostra il popup di conferma 24 if (!confirm(confirmMessage)) { 25 // Se l'utente clicca "Annulla", esce dalla funzione 26 return false; 27 } 28 29 // Se l'utente clicca "OK", procede con la chiamata AJAX 30 jQuery.post(ajax_var.url, { 31 action: 'hstPurgeCache', 32 param: param, 33 nonce: ajax_var.nonce, 34 loc: loc 35 }, function(response) { 36 if(jQuery("#fastcacheMessageBox").length < 1) { 37 jQuery('body').append('<div id="fastcacheMessageBox" class="">'); 38 } 39 setTimeout(function() { 40 jQuery("#fastcacheMessageBox").html(response); 41 }, 50); 42 setTimeout(function() { 43 jQuery("#fastcacheMessageBox").html(''); 44 }, 3000); 45 }); 46 }); 47});
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.