Lines 53-58
Link Here
|
53 |
|
53 |
|
54 |
</select> |
54 |
</select> |
55 |
  <span id="anyone_remark" style="display:none;color:red;">The "Anyone" permission has no actual effect while this list is strictly private.</span> |
55 |
  <span id="anyone_remark" style="display:none;color:red;">The "Anyone" permission has no actual effect while this list is strictly private.</span> |
|
|
56 |
  <span id="staff_remark" style="display:none;color:red;">The "Staff only" permission has no actual effect while this list is strictly private.</span> |
56 |
</li> |
57 |
</li> |
57 |
[% END %] |
58 |
[% END %] |
58 |
|
59 |
|
Lines 1102-1117
function AdjustRemark() {
Link Here
|
1102 |
|
1103 |
|
1103 |
if( perms < 2 ) { |
1104 |
if( perms < 2 ) { |
1104 |
$("#anyone_remark").hide(); |
1105 |
$("#anyone_remark").hide(); |
|
|
1106 |
$("#staff_remark".hide(); |
1105 |
} else if( category==1 ) { |
1107 |
} else if( category==1 ) { |
1106 |
// If we move to Private (without shares), show Anyone remark |
1108 |
// If we move to Private (without shares), show one of the following: |
|
|
1109 |
// Anyone remark, if anyone can change the list |
1110 |
// Staff remark, if only Staff can change the list |
1107 |
// Note: the number of shares is not tested real-time |
1111 |
// Note: the number of shares is not tested real-time |
1108 |
[% IF !shelf.is_shared %] |
1112 |
[% IF !shelf.is_shared %] |
1109 |
$("#anyone_remark").show(); |
1113 |
if ( perms==2 ) { |
|
|
1114 |
$("#anyone_remark").show(); |
1115 |
$("#staff_remark").hide(); |
1116 |
} else if ( perms==3 ) { |
1117 |
$("#anyone_remark").hide(); |
1118 |
$("#staff_remark").show(); |
1110 |
[% ELSE %] |
1119 |
[% ELSE %] |
1111 |
$("#anyone_remark").hide(); |
1120 |
$("#anyone_remark").hide(); |
|
|
1121 |
$("#staff_remark").hide(); |
1112 |
[% END %] |
1122 |
[% END %] |
1113 |
} else { // category==2 |
1123 |
} else { // category==2 |
1114 |
$("#anyone_remark").hide(); |
1124 |
$("#anyone_remark").hide(); |
|
|
1125 |
$("#staff_remark").hide(); |
1115 |
} |
1126 |
} |
1116 |
} |
1127 |
} |
1117 |
</script> |
1128 |
</script> |
1118 |
- |
|
|