From 058f53792de3f1468321b0cad2ced94c7e491909 Mon Sep 17 00:00:00 2001 From: nicrausaz <n.crausaz99@gmail.com> Date: Wed, 26 Jun 2019 11:09:23 +0200 Subject: [PATCH] Remove dead code --- canapEPFL/script.js | 39 --------------------------------------- 1 file changed, 39 deletions(-) diff --git a/canapEPFL/script.js b/canapEPFL/script.js index 2a18bb8..e433edb 100644 --- a/canapEPFL/script.js +++ b/canapEPFL/script.js @@ -11,7 +11,6 @@ $(document).ready(function () { toggleTableHeaders(); } else if (location.pathname.split("/").slice(-1)[0] == "form.php") { - // initJobChange(); initButtonsAction(); initAddChildButtons(); initAddRadioButtonEvent(); @@ -216,9 +215,6 @@ function initAddRadioButtonEvent() { $("#dejaCand1").change(setDejaCandState); $("#dejaCand2").change(setDejaCandState); setDejaCandState(); - - // $('#lieuLausanne').change(setLieuState); - // $('#lieuSion').change(setLieuState); } function clearRepresentants() { @@ -237,41 +233,6 @@ function initDatepicker() { $("#birthApp").datepicker({ minDate: '-60y', maxDate: '-13y', dateFormat: "dd/mm/yy" }); } -// function getFormation() { -// if ($('#lieuLausanne').is(":checked")) { -// return $("#jbLausanne option:selected")[0].value; -// } -// else { -// return $("#jbSion option:selected")[0].value; -// } -// } - -function initJobChange() { - // $(".jobSelectors").change(function () { - // var selectedFormation = getFormation(); - // showPolyAndInfoDivs(selectedFormation); - // }); - // $("#lieux").change(function () { - // var selectedFormation = getFormation(); - // showPolyAndInfoDivs(selectedFormation); - // }); -} - -function showOnFormReturn(lieu) { - // if (location.search != "?edit") { - // if (lieu == 'Lausanne') { - // var selectedFormation = $("#jbLausanne option:selected")[0].value; - // } - // else if (lieu == 'Sion') { - // var selectedFormation = $("#jbSion option:selected")[0].value; - // } - // showListJob(lieu); - // showPolyAndInfoDivs(selectedFormation); - // } else { - // var selectedFormation = $('#job').val(); - // showPolyAndInfoDivs(selectedFormation); - // } -} function showListJob(lieu) { if (lieu == 'Lausanne') { $("#jbSion").hide(); -- GitLab