Project

General

Profile

« Previous | Next » 

Revision 240

Added by stefan about 19 years ago

Applied aportale's patch to use label instead of javascript toggle code

View differences:

login_form.php
53 53
}
54 54
</style>
55 55

  
56
<script language="javascript" type="text/javascript">
57
function toggle_checkbox(checkbox_id) {
58
	if(document.getElementById(checkbox_id).checked == true) {
59
		document.getElementById(checkbox_id).checked = false;
60
	} else {
61
		document.getElementById(checkbox_id).checked = true;
62
	}
63
}
64
</script>
65

  
66 56
<h1>&nbsp;Login</h1>
67 57
&nbsp;<?php echo $thisApp->message; ?>
68 58
<br />
......
94 84
	<td>&nbsp;</td>
95 85
	<td>
96 86
		<input type="checkbox" name="remember" id="remember" value="true" />
97
		<font onclick="javascript: toggle_checkbox('remember');" style="cursor: pointer;">
87
		<label for="remember">
98 88
			<?php echo $TEXT['REMEMBER_ME']; ?>
99
		</font>
89
		</label>
100 90
	</td>
101 91
</tr>
102 92
<?php } ?>

Also available in: Unified diff