mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
resumen lateral terminado
This commit is contained in:
@ -58,10 +58,14 @@ class DatosGenerales {
|
||||
|
||||
this.rl_datos_generales = $(".rl-datos-generales");
|
||||
this.rl_tipo = $("#rl_tipo");
|
||||
this.rl_tipo_cubierta = $('#rl_tipo_cubierta');
|
||||
this.rl_tamanio = $("#rl_tamanio");
|
||||
this.rl_tiradas = $("#rl_tiradas");
|
||||
this.rl_paginas = $("#rl_paginas");
|
||||
|
||||
this.rl_servicios_extra = $(".rl-servicios-extra");
|
||||
this.rl_prototipo = $("#rl_prototipo");
|
||||
|
||||
this.initValidation();
|
||||
}
|
||||
|
||||
@ -388,7 +392,6 @@ class DatosGenerales {
|
||||
processMenuLateral() {
|
||||
|
||||
let menu_off = true;
|
||||
this.rl_datos_generales.removeClass('d-none');
|
||||
|
||||
if (this.tiposLibro.filter('.selected').length > 0) {
|
||||
let tipo = String(this.tiposLibro.filter('.selected').attr('id'));
|
||||
@ -400,6 +403,13 @@ class DatosGenerales {
|
||||
else {
|
||||
this.rl_tipo.addClass('d-none');
|
||||
}
|
||||
if($('.tipo-cubierta.selected').length>0){
|
||||
this.rl_tipo_cubierta.text($($('.tipo-cubierta.selected').find('.form-label')).text());
|
||||
this.rl_tipo_cubierta.removeClass('d-none');
|
||||
}
|
||||
else{
|
||||
this.rl_tipo_cubierta.addClass('d-none');
|
||||
}
|
||||
if (this.checkFormatoPersonalizado.is(':checked')) {
|
||||
let ancho = parseFloat(this.anchoPersonalizado.val());
|
||||
let alto = parseFloat(this.altoPersonalizado.val());
|
||||
@ -441,6 +451,25 @@ class DatosGenerales {
|
||||
|
||||
if (!menu_off)
|
||||
this.rl_datos_generales.removeClass('d-none');
|
||||
else
|
||||
this.rl_datos_generales.addClass('d-none');
|
||||
|
||||
// servicios extra
|
||||
menu_off = true;
|
||||
if(this.prototipo.is(':checked')){
|
||||
this.rl_prototipo.removeClass("d-none");
|
||||
menu_off = false;
|
||||
}
|
||||
else{
|
||||
this.rl_prototipo.addClass('d-none');
|
||||
}
|
||||
if(!menu_off){
|
||||
this.rl_servicios_extra.removeClass('d-none');
|
||||
}
|
||||
else{
|
||||
this.rl_servicios_extra.addClass('d-none');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user