summaryrefslogtreecommitdiffstatshomepage
path: root/templates/register.tpl.php
diff options
context:
space:
mode:
authorGravatar mensonge2008-05-17 13:02:56 +0000
committerGravatar mensonge2008-05-17 13:02:56 +0000
commitd2d8ddfca42b46a520c0683e0f5795fa72af4d5c (patch)
treecf5b0fc863b1e5bd317a31212c48ab88f6d5eb75 /templates/register.tpl.php
parent07e331bdd3c4d1c376388d605ab0aceac6480316 (diff)
downloadscuttle-d2d8ddfca42b46a520c0683e0f5795fa72af4d5c.tar.gz
scuttle-d2d8ddfca42b46a520c0683e0f5795fa72af4d5c.zip
Interface design: antispam question is hidden when focus on it
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@130 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'templates/register.tpl.php')
-rw-r--r--templates/register.tpl.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/register.tpl.php b/templates/register.tpl.php
index 7691a95..b0c5425 100644
--- a/templates/register.tpl.php
+++ b/templates/register.tpl.php
@@ -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 } ?>