Commit 4d863501 by Billy Larru

arreglando error en mantenimientosede

parent 5ea1fa98
...@@ -19,9 +19,9 @@ function getColumns() { ...@@ -19,9 +19,9 @@ function getColumns() {
className: 'text-center', className: 'text-center',
render: (data) => { render: (data) => {
if (data) { if (data) {
return "-";
} else {
return data; return data;
} else {
return "-";
} }
} }
}, },
...@@ -88,7 +88,7 @@ function inicializarInputsModalEditar(data = {}){ ...@@ -88,7 +88,7 @@ function inicializarInputsModalEditar(data = {}){
debugger debugger
$("#spanSede").html(data.sede_descripcion); $("#spanSede").html(data.sede_descripcion);
$("#cboEditarConceptos").html(htmlConceptos); $("#cboEditarConceptos").html(htmlConceptos);
$("#cboEditarConceptos").val(data.montoamanecidas_id); $("#cboEditarConceptos").val(data.montoamanecida_id);
// $("#txtEditarMonto12h").val(data.monto12h); // $("#txtEditarMonto12h").val(data.monto12h);
// $("#txtEditarMonto24h").val(data.monto24h); // $("#txtEditarMonto24h").val(data.monto24h);
// debugger // debugger
...@@ -124,7 +124,7 @@ function mostrarMensajeResultadoModalRegistrar(result = {}){ ...@@ -124,7 +124,7 @@ function mostrarMensajeResultadoModalRegistrar(result = {}){
} }
function mostrarModalEdicion(data = {}) { function mostrarModalEdicion(data = {}) {
ajaxModal.get("modals/policias/mantenimientoSedes/editarConceptoSede.jsp").then((response) => { ajaxModal.get("policias/mantenimientoSedes/editarConceptoSede.jsp").then((response) => {
swal({ swal({
title: '<strong>Editar</strong>', title: '<strong>Editar</strong>',
html: response.data, html: response.data,
...@@ -194,7 +194,7 @@ function listarAsignacionesConceptosSede(objParams = {}) { ...@@ -194,7 +194,7 @@ function listarAsignacionesConceptosSede(objParams = {}) {
}, },
classNameForDatatable, classNameForDatatable,
).then((nodes) => { ).then((nodes) => {
nodes.container.off();
nodes.container.on("click", ".registrar", function () { nodes.container.on("click", ".registrar", function () {
let data = nodes.datatable.DataTable().row($(this).parents("tr")).data(); let data = nodes.datatable.DataTable().row($(this).parents("tr")).data();
mostrarModalRegistrar(data); mostrarModalRegistrar(data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment