X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fxnetevents%2Fedit.tpl;h=cce1d1de20c760243bf2da867daff1e18c8272ff;hb=4f09e2280ddb747ab2f9b8364f9ceec8cdd1c623;hp=aac67dbc923c68bced74bb0871f98c0dccde842f;hpb=7b2413f614dc4deafd18501ba3cbe8db398c05e3;p=platal.git diff --git a/templates/xnetevents/edit.tpl b/templates/xnetevents/edit.tpl index aac67db..cce1d1d 100644 --- a/templates/xnetevents/edit.tpl +++ b/templates/xnetevents/edit.tpl @@ -24,14 +24,11 @@ {literal} function deadlineChange(box) { - var nd = document.getElementById('no_deadline'); var dd = document.getElementById('do_deadline'); - if (box.checked) { - nd.style.display = 'none'; + if (box.value == 1) { dd.style.display = 'inline'; } else { - nd.style.display = 'inline'; dd.style.display = 'none'; } } @@ -56,15 +53,21 @@ function deadlineChange(box)