1//function vc_prettyPhoto() { } // Disable Visual Composer prettyPhoto override 2 3jQuery( document ).ready( function( $ ) { 4 5 'use strict'; 6 7 $('.eliminarBW').click(function(){ 8 if($(this).data('q').length){ 9 var href = $(this).attr('href'); 10 var arr = href.split('/'); 11 arr = arr.filter(function(n){ return n != '' }); 12 var id = arr[parseInt(arr.length)-1]; 13 eliminarRegBW(id, $(this).data('q')); 14 } 15 return false; 16 }); 17 18 function eliminarRegBW($id, $q){ 19 var dialogBW = $('#dialog-eliminar').dialog({ 20 resizable: false, 21 height: "auto", 22 width: 400, 23 modal: true, 24 buttons: { 25 "SÃ": function() { 26 // Ajax query 27 $.ajax({ 28 type: 'POST', 29 data: { 30 action: 'elimina_regbw', 31 ajaxnonce: ghostpoolAjax.ajaxnonce, 32 id: $id, 33 q: $q 34 }, 35 dataType: 'html', 36 url: ghostpoolAjax.ajaxurl, 37 success: function(data) { 38 data = data.trim().replace('**0',''); 39 if(data=='1'){ 40 location.reload(); 41 }else{ 42 alert('Error'); 43 } 44 $( this ).dialog( "close" ); 45 }, 46 error: function( jqXHR, textStatus, errorThrown ) { 47 alert( jqXHR + " :: " + textStatus + " :: " + errorThrown ); 48 } 49 }); 50 }, 51 "No": function() { 52 $( this ).dialog( "close" ); 53 } 54 } 55 }); 56 57 return false; 58 59 } 60});
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.