backport 1760
authorx2001corpet <x2001corpet@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 29 Apr 2007 18:53:06 +0000 (18:53 +0000)
committerx2001corpet <x2001corpet@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 29 Apr 2007 18:53:06 +0000 (18:53 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1761 839d8a87-29fc-0310-9880-83ba4fa771e5

templates/profile/nomusage.tpl

index c6afccd..d3b720c 100644 (file)
@@ -82,8 +82,9 @@ utiliser une adresse personnalisée, il faut se tourner vers
 
 {literal}
   <form action="profile/usage" method="post" onsubmit="
-  for (var i=this.reason.length-1; i--; i>=0) {
-    if (this.reason[i].checked) {
+  for (var i=this.reason.length-1; i>=0; i--) {
+    if (this.reason[i].checked && 
+      (this.reason[i].value != 'other' || this.other_reason.value != '')) {
       return true;
     }
   }