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:

index.php
53 53
<link href="stylesheet.css" rel="stylesheet" type="text/css">
54 54
<script language="javascript" type="text/javascript">
55 55

  
56
function toggle_checkbox(checkbox_id) {
57

  
58
	if(document.getElementById(checkbox_id).checked == true) {
59

  
60
		document.getElementById(checkbox_id).checked = false;
61

  
62
	} else {
63

  
64
		document.getElementById(checkbox_id).checked = true;
65

  
66
	}
67

  
68
}
69 56
function confirm_link(message, url) {
70 57
	if(confirm(message)) location.href = url;
71 58
}
......
256 243
			<td>
257 244
				<div name="file_perms_box" id="file_perms_box" style="margin: 0; padding: 0; display: <?php if(isset($_SESSION['operating_system']) AND $_SESSION['operating_system'] == 'windows') { echo 'none'; } else { echo 'block'; } ?>;">
258 245
					<input type="checkbox" tabindex="6" name="world_writeable" id="world_writeable" value="true"<?php if(isset($_SESSION['world_writeable']) AND $_SESSION['world_writeable'] == true) { echo 'checked'; } ?> />
259
					<font style="cursor: pointer;" onclick="javascript: toggle_checkbox('world_writeable');">
246
					<label for="world_writeable">
260 247
						World-writeable file permissions (777)
261
					</font>
248
					</label>
262 249
					<br />
263 250
					<font class="note">(Please note: this is only recommended for testing environments)</font>
264 251
				</div>
......
299 286
			<td>&nbsp;</td>
300 287
			<td colspan="2">
301 288
				<input type="checkbox" tabindex="12" name="install_tables" id="install_tables" value="true"<?php if(!isset($_SESSION['install_tables'])) { echo ' checked'; } elseif($_SESSION['install_tables'] == 'true') { echo ' checked'; } ?> />
302
				<font style="cursor: pointer; color: #666666;" onclick="javascript: toggle_checkbox('install_tables');">Install Tables</font>
289
				<label for="install_tables" style="color: #666666;">Install Tables</label>
303 290
				<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
304
				<font style="font-size: 10px; color: #666666;">(Please note: May remove existing tables and data)</font></td>		
291
				<span style="font-size: 10px; color: #666666;">(Please note: May remove existing tables and data)</span></td>		
305 292
			</td>
306 293
		</tr>
307 294
		<tr>
......
380 367
</table>
381 368

  
382 369
</body>
383
</html>
370
</html>

Also available in: Unified diff