Skip to content

Commit

Permalink
Merge branch 'ajustesedad' into 'main'
Browse files Browse the repository at this point in the history
Edad sin cambiar mes y dia

See merge request pasosdeJesus/sivel2_gen!477
  • Loading branch information
vtamara committed Dec 2, 2023
2 parents f33d845 + 6e26312 commit 93fbded
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/javascript/controllers/edad_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ export default class extends Controller {
mes = 0
dia = 1
campo_anionac.value = anio
campo_mesnac.value = mes + 1
campo_dianac.value = dia
}
// El campo cambiado fue edadactual
if(event.target.dataset.edadTarget == 'edadactual'){
Expand All @@ -51,8 +49,6 @@ export default class extends Controller {
mes = 0
dia = 1
campo_anionac.value = anio
campo_mesnac.value = mes + 1
campo_dianac.value = dia
}
fechaNacimiento = new Date(anio, mes, dia);
let edadactual = hoy.getFullYear() - anio;
Expand Down

0 comments on commit 93fbded

Please sign in to comment.