]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
Interface design: antispam question is hidden when focus on it
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Sat, 17 May 2008 13:02:56 +0000 (13:02 +0000)
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Sat, 17 May 2008 13:02:56 +0000 (13:02 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@130 b3834d28-1941-0410-a4f8-b48e95affb8f

templates/register.tpl.php

index 7691a9546536a13721c30135ab6e0a78bf6f252b..b0c54253771f211c7db96329ce5c79238b75044c 100644 (file)
@@ -31,7 +31,7 @@ window.onload = function() {
 <?php if(strlen($antispamQuestion)>0) {?>
 <tr>
     <th align="left"><label for="question"><?php echo T_('Antispam question'); ?></label></th>
-    <td><input type="text" id="antispamAnswer" name="antispamAnswer" size="40" class="required" value="<?php echo $antispamQuestion ?>"/></td>
+    <td><input type="text" id="antispamAnswer" name="antispamAnswer" size="40" class="required" value="<?php echo $antispamQuestion; ?>" onfocus="if (this.value == '<?php echo $antispamQuestion; ?>') this.value = '';" onblur="if (this.value == '') this.value = '<?php echo $antispamQuestion; ?>';"/></td>
     <td></td>
 </tr>
 <?php } ?>