mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Merge branch 'dev/button_save' into 'main'
arreglado boton guardar breadcrumb See merge request jjimenez/safekat!147
This commit is contained in:
@ -139,7 +139,7 @@
|
||||
cancelButtonText: "<?=lang("App.notification_delete_btn_cancel")?>",
|
||||
closeOnConfirm: !1
|
||||
}).then(function(isConfirm) {
|
||||
console.log(isConfirm);
|
||||
|
||||
if (isConfirm.value) {
|
||||
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){
|
||||
// Se cogen los valores de la linea con los datos correspondientes
|
||||
$.each(data.lineas, function(key, value) {
|
||||
console.log(value.fields.num_formas)
|
||||
fibra = $('#lp_rot_color_aFavorFibra').prop('checked')
|
||||
if(fromComparador){
|
||||
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
|
||||
formInputs.forEach(function(input) {
|
||||
@ -170,6 +169,11 @@ console.log(originalValues)
|
||||
}
|
||||
}
|
||||
|
||||
$('#bc-save').on( "click", function() {
|
||||
showBreadCrumbSaveButton(false);
|
||||
$('#saveForm').click()
|
||||
} );
|
||||
|
||||
|
||||
|
||||
<?= $this->endSection() ?>
|
||||
@ -194,7 +198,6 @@ console.log(originalValues)
|
||||
save_servicios();
|
||||
save_datos_envios();
|
||||
|
||||
|
||||
$.when(fill_bbdd_from_lp(id).then(function(data, textStatus, jqXHR) {
|
||||
generateCompJSON()
|
||||
form = $('#presupuestoForm').serialize()
|
||||
@ -208,8 +211,11 @@ console.log(originalValues)
|
||||
yeniden(data.<?= csrf_token() ?>)
|
||||
if('errorMensaje' in data)
|
||||
popErrorAlert(data.errorMensaje)
|
||||
else
|
||||
else{
|
||||
showBreadCrumbSaveButton(false)
|
||||
popSuccessAlert(data.mensaje)
|
||||
}
|
||||
|
||||
}
|
||||
}).fail(function (jqXHR, textStatus, error) {
|
||||
// Handle error here
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
</div>
|
||||
<?php
|
||||
} 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">
|
||||
<nav aria-label="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() ?>
|
||||
|
||||
Reference in New Issue
Block a user