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:

template.html
4 4
<head>
5 5
<title>{TEXT_LOGIN}</title>
6 6
<link href="{INTERFACE_DIR_URL}/stylesheet.css" rel="stylesheet" type="text/css">
7
<script language="javascript" type="text/javascript">
8
function toggle_checkbox(checkbox_id) {
9
	if(document.getElementById(checkbox_id).checked == true) {
10
		document.getElementById(checkbox_id).checked = false;
11
	} else {
12
		document.getElementById(checkbox_id).checked = true;
13
	}
14
}
15
</script>
16 7
</head>
17 8
<body onload="document.login.{USERNAME_FIELDNAME}.focus();">
18 9

  
......
56 47
			<td>&nbsp;</td>
57 48
			<td>
58 49
				<input type="checkbox" name="remember" id="remember" value="true" />
59
				<font onclick="javascript: toggle_checkbox('remember');" style="cursor: pointer;">
50
				<label for="remember">
60 51
					{TEXT_REMEMBER_ME}
61
				</font>
52
				</label>
62 53
			</td>
63 54
		</tr>
64 55
		<tr height="30">

Also available in: Unified diff