X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=templates%2Fxnetevents%2Fedit.tpl;h=02b55f9a9013d84dccdf7f5461e7f93afe8a241a;hb=5ddeb07cc787dd1dc3630a31f1528f5cc7c4d9b9;hp=8c10aed4ee50d03b00d993940b6c170e3e31b240;hpb=3cabafae86cec10f172eecfb6bee6d930574f91a;p=platal.git diff --git a/templates/xnetevents/edit.tpl b/templates/xnetevents/edit.tpl index 8c10aed..02b55f9 100644 --- a/templates/xnetevents/edit.tpl +++ b/templates/xnetevents/edit.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2006 Polytechnique.org *} +{* Copyright (C) 2003-2007 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -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)