Skip to content
Snippets Groups Projects
Commit 058f5379 authored by nicrausaz's avatar nicrausaz
Browse files

Remove dead code

parent 1a292f89
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment