mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
paginas para cosido multiplo de 4
This commit is contained in:
@ -359,6 +359,7 @@ return [
|
|||||||
'sin_gramaje' => "Seleccione gramaje",
|
'sin_gramaje' => "Seleccione gramaje",
|
||||||
'tipo_cubierta' => 'Seleccione tipo de cubierta',
|
'tipo_cubierta' => 'Seleccione tipo de cubierta',
|
||||||
'opcion_solapas' => 'Seleccione la opción para las solapas',
|
'opcion_solapas' => 'Seleccione la opción para las solapas',
|
||||||
|
'paginas_cosido' => 'El número de páginas para <b>cosido</b> debe ser múltiplo de 4',
|
||||||
],
|
],
|
||||||
|
|
||||||
'errores' => [
|
'errores' => [
|
||||||
|
|||||||
@ -228,6 +228,19 @@ class DatosGenerales {
|
|||||||
|
|
||||||
divTipoLibro.find('.fv-plugins-message-container').remove();
|
divTipoLibro.find('.fv-plugins-message-container').remove();
|
||||||
if ($('.tipo-libro.selected').length > 0) {
|
if ($('.tipo-libro.selected').length > 0) {
|
||||||
|
if($('#cosido').hasClass('selected')){
|
||||||
|
const value = parseInt($("#paginas").val());
|
||||||
|
if(value % 4 != 0){
|
||||||
|
divTipoLibro.append(`
|
||||||
|
<div class="fv-plugins-message-container invalid-feedback">
|
||||||
|
<div data-field="div_tipo_libro" data-validator="callback" style="margin-top: 50px;">
|
||||||
|
${window.translations["validation"].paginas_cosido}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user