1/*=================================== 2= Lenar campo = 3===================================*/ 4 5$(".btnEditarDocumento").click(function(){ 6 7var idDocumento = $(this).attr("idDocumento"); 8console.log("idDocumento", idDocumento); 9 10var datos = new FormData(); 11datos.append("idDocumento", idDocumento); 12 13$.ajax({ 14url:"ajax/documentos.ajax.php", 15method:"POST", 16data: datos, 17cache: false, 18contentType: false, 19processData: false, 20dataType:"json", 21success: function(respuesta){ 22 23 24 25 $("#EditardescripcionDocumento").val(respuesta["descripcion"]); 26 $("#EditaroperacionDocumento").val(respuesta["operacion"]); 27 28 29 30 //console.log("respuesta", respuesta); 31} 32 33 34}); 35 36 37}) 38 39/*======================================= 40= Activar Documento = 41=======================================*/ 42 43 44$(".btnActivarDocumento").click(function(){ 45 46 47var idDocumento = $(this).attr("idDocumento"); 48var estadoDocumento = $(this).attr("estadoDocumento"); 49//console.log("idModulo", sstadoModulo); 50 51var datos = new FormData(); 52datos.append("idDocumentoAc", idDocumento); 53datos.append("estadoDocumento", estadoDocumento); 54 55 56$.ajax({ 57url:"ajax/documentos.ajax.php", 58method:"POST", 59data: datos, 60cache: false, 61contentType: false, 62processData: false, 63dataType:"json", 64success: function(respuesta){ 65 66 67} 68 69 70}); 71 72if (estadoDocumento==0) { 73 74 $(this).removeClass('btn-success'); 75 $(this).addClass('btn-danger'); 76 $(this).html('Desactivado'); 77 $(this).attr("estadoDocumento",1); 78 79 80} 81else{ 82 $(this).removeClass('btn-danger'); 83 $(this).addClass('btn-success'); 84 $(this).html('Activado'); 85 $(this).attr("estadoDocumento",0); 86 87 88} 89 90 91})
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.