Revision 337
Added by stefan almost 19 years ago
settings.html | ||
---|---|---|
2 | 2 |
|
3 | 3 |
<script type="text/javascript" language="javascript"> |
4 | 4 |
function toggle_viewers() { |
5 |
if(document.settings.visibility.value == 'private') { |
|
6 |
document.getElementById('private_viewers').style.display = 'block'; |
|
7 |
document.getElementById('registered_viewers').style.display = 'none'; |
|
8 |
} else if(document.settings.visibility.value == 'registered') { |
|
9 |
document.getElementById('private_viewers').style.display = 'none'; |
|
10 |
document.getElementById('registered_viewers').style.display = 'block'; |
|
5 |
if(document.settings.visibility.value == 'private' || document.settings.visibility.value == 'registered') { |
|
6 |
document.getElementById('allowed_viewers').style.display = 'block'; |
|
11 | 7 |
} else { |
12 |
document.getElementById('private_viewers').style.display = 'none'; |
|
13 |
document.getElementById('registered_viewers').style.display = 'none'; |
|
8 |
document.getElementById('allowed_viewers').style.display = 'none'; |
|
14 | 9 |
} |
15 | 10 |
} |
16 | 11 |
</script> |
... | ... | |
57 | 52 |
</ul> |
58 | 53 |
</td> |
59 | 54 |
<td rowspan="10" valign="top" style="padding-left: 20px; padding-top: 8px;"> |
60 |
<div id="private_viewers" style="display: {DISPLAY_PRIVATE};">
|
|
61 |
{TEXT_PRIVATE_VIEWERS}:
|
|
55 |
<div id="allowed_viewers" style="display: {DISPLAY_VIEWERS};">
|
|
56 |
{TEXT_ALLOWED_VIEWERS}:
|
|
62 | 57 |
<ul style="list-style-type: none; margin: 0; padding: 0;"> |
63 | 58 |
<!-- BEGIN group_list_block2 --> |
64 | 59 |
<li> |
... | ... | |
69 | 64 |
</ul> |
70 | 65 |
</div> |
71 | 66 |
</td> |
72 |
<td rowspan="10" valign="top" style="padding-left: 20px; padding-top: 8px;"> |
|
73 |
<div id="registered_viewers" style="display: {DISPLAY_REGISTERED};"> |
|
74 |
{TEXT_REGISTERED_VIEWERS}: |
|
75 |
<ul style="list-style-type: none; margin: 0; padding: 0;"> |
|
76 |
<!-- BEGIN group_list_block2 --> |
|
77 |
<li> |
|
78 |
<input type="checkbox" name="viewing_groups[]" id="viewing_group_{ID}" value="{ID}"{CHECKED}{DISABLED} /> |
|
79 |
<label for="viewing_group_{TOGGLE}">{NAME}</label> |
|
80 |
</li> |
|
81 |
<!-- END group_list_block2 --> |
|
82 |
</ul> |
|
83 |
</div> |
|
84 |
</td> |
|
85 | 67 |
</tr> |
86 | 68 |
<tr height="20"> |
87 | 69 |
<td width="100" height="20">{TEXT_MENU_TITLE}:</td> |
Also available in: Unified diff
Fixed ticket #146 - problems removing groups from private, registered viewer lists of page.