mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
arreglado boton guardar breadcrumb
This commit is contained in:
@ -139,7 +139,7 @@
|
|||||||
cancelButtonText: "<?=lang("App.notification_delete_btn_cancel")?>",
|
cancelButtonText: "<?=lang("App.notification_delete_btn_cancel")?>",
|
||||||
closeOnConfirm: !1
|
closeOnConfirm: !1
|
||||||
}).then(function(isConfirm) {
|
}).then(function(isConfirm) {
|
||||||
console.log(isConfirm);
|
|
||||||
if (isConfirm.value) {
|
if (isConfirm.value) {
|
||||||
window.location.href = '<?=site_url("notification/delete/")?>'+id;
|
window.location.href = '<?=site_url("notification/delete/")?>'+id;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2937,7 +2937,6 @@ function calcularPresupuesto_rot_color(fromComparador=false, updatedTipologias=f
|
|||||||
if(data.lineas.length >0){
|
if(data.lineas.length >0){
|
||||||
// Se cogen los valores de la linea con los datos correspondientes
|
// Se cogen los valores de la linea con los datos correspondientes
|
||||||
$.each(data.lineas, function(key, value) {
|
$.each(data.lineas, function(key, value) {
|
||||||
console.log(value.fields.num_formas)
|
|
||||||
fibra = $('#lp_rot_color_aFavorFibra').prop('checked')
|
fibra = $('#lp_rot_color_aFavorFibra').prop('checked')
|
||||||
if(fromComparador){
|
if(fromComparador){
|
||||||
if(value.fields.maquina_id === input_data.maquina_id &&
|
if(value.fields.maquina_id === input_data.maquina_id &&
|
||||||
|
|||||||
@ -135,7 +135,6 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(originalValues)
|
|
||||||
|
|
||||||
// Agregar un evento de cambio a cada campo de entrada
|
// Agregar un evento de cambio a cada campo de entrada
|
||||||
formInputs.forEach(function(input) {
|
formInputs.forEach(function(input) {
|
||||||
@ -170,6 +169,11 @@ console.log(originalValues)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$('#bc-save').on( "click", function() {
|
||||||
|
showBreadCrumbSaveButton(false);
|
||||||
|
$('#saveForm').click()
|
||||||
|
} );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?= $this->endSection() ?>
|
<?= $this->endSection() ?>
|
||||||
@ -194,7 +198,6 @@ console.log(originalValues)
|
|||||||
save_servicios();
|
save_servicios();
|
||||||
save_datos_envios();
|
save_datos_envios();
|
||||||
|
|
||||||
|
|
||||||
$.when(fill_bbdd_from_lp(id).then(function(data, textStatus, jqXHR) {
|
$.when(fill_bbdd_from_lp(id).then(function(data, textStatus, jqXHR) {
|
||||||
generateCompJSON()
|
generateCompJSON()
|
||||||
form = $('#presupuestoForm').serialize()
|
form = $('#presupuestoForm').serialize()
|
||||||
@ -208,8 +211,11 @@ console.log(originalValues)
|
|||||||
yeniden(data.<?= csrf_token() ?>)
|
yeniden(data.<?= csrf_token() ?>)
|
||||||
if('errorMensaje' in data)
|
if('errorMensaje' in data)
|
||||||
popErrorAlert(data.errorMensaje)
|
popErrorAlert(data.errorMensaje)
|
||||||
else
|
else{
|
||||||
|
showBreadCrumbSaveButton(false)
|
||||||
popSuccessAlert(data.mensaje)
|
popSuccessAlert(data.mensaje)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}).fail(function (jqXHR, textStatus, error) {
|
}).fail(function (jqXHR, textStatus, error) {
|
||||||
// Handle error here
|
// Handle error here
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
} else { ?>
|
} else { ?>
|
||||||
<div class="card bg-secondary sticky-breadcrumb border border-secondary mb-3">
|
<div class="card sticky-breadcrumb border border-secondary mb-3">
|
||||||
<div class="card-header header-elements">
|
<div class="card-header header-elements">
|
||||||
<nav aria-label="breadcrumb">
|
<nav aria-label="breadcrumb">
|
||||||
<ol class="breadcrumb">
|
<ol class="breadcrumb">
|
||||||
@ -51,19 +51,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// SOLO PARA TEST
|
|
||||||
/*$(document).on("keypress", function(event) {
|
|
||||||
if (event.keyCode === 112) {
|
|
||||||
event.preventDefault();
|
|
||||||
showBreadCrumbSaveButton(true);
|
|
||||||
}
|
|
||||||
});*/
|
|
||||||
|
|
||||||
$('#bc-save').on( "click", function() {
|
|
||||||
showBreadCrumbSaveButton(false);
|
|
||||||
alert('click action on save button');
|
|
||||||
} );
|
|
||||||
///
|
|
||||||
|
|
||||||
|
|
||||||
<?= $this->endSection() ?>
|
<?= $this->endSection() ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user