Lines 51-60
Link Here
|
51 |
[% IF shelf.allow_change_from_others %]<option value="2" selected="selected">Anyone seeing this list</option>[% ELSE %]<option value="2">Anyone seeing this list</option>[% END %] |
51 |
[% IF shelf.allow_change_from_others %]<option value="2" selected="selected">Anyone seeing this list</option>[% ELSE %]<option value="2">Anyone seeing this list</option>[% END %] |
52 |
|
52 |
|
53 |
[% IF staffuser == 1 %][% IF shelf.allow_change_from_staff %]<option value="3" selected="selected">Staff only</option>[% ELSE %]<option value="3">Staff only</option>[% END %][% END %] |
53 |
[% IF staffuser == 1 %][% IF shelf.allow_change_from_staff %]<option value="3" selected="selected">Staff only</option>[% ELSE %]<option value="3">Staff only</option>[% END %][% END %] |
|
|
54 |
[% IF permitteduser == 1 %][% shelf.allow_change_from_permitted_staff %]<option value="4" selected="selected">Permitted staff only</option>[% ELSE %]<option value="4">Permitted staff only</option>[% END %'[% END %] |
54 |
|
55 |
|
55 |
</select> |
56 |
</select> |
56 |
  <span id="anyone_remark" style="display:none;color:red;">The "Anyone" permission has no actual effect while this list is strictly private.</span> |
57 |
  <span id="anyone_remark" style="display:none;color:red;">The "Anyone" permission has no actual effect while this list is strictly private.</span> |
57 |
  <span id="staff_remark" style="display:none;color:red;">The "Staff only" permission has no actual effect while this list is strictly private.</span> |
58 |
  <span id="staff_remark" style="display:none;color:red;">The "Staff only" permission has no actual effect while this list is strictly private.</span> |
|
|
59 |
  <span id="permitted_staff_remark" style="display:none;color:red;">The "Permitted staff only" permission has no actual effect while this list is strictly private.</span> |
58 |
</li> |
60 |
</li> |
59 |
[% END %] |
61 |
[% END %] |
60 |
|
62 |
|
Lines 1082-1087
function AdjustRemark() {
Link Here
|
1082 |
if( perms < 2 ) { |
1084 |
if( perms < 2 ) { |
1083 |
$("#anyone_remark").hide(); |
1085 |
$("#anyone_remark").hide(); |
1084 |
$("#staff_remark").hide(); |
1086 |
$("#staff_remark").hide(); |
|
|
1087 |
$("#permitted_staff_remark").hide(); |
1085 |
} else if( public==0 ) { |
1088 |
} else if( public==0 ) { |
1086 |
// If we move to Private (without shares), show Anyone remark |
1089 |
// If we move to Private (without shares), show Anyone remark |
1087 |
// Note: the number of shares is not tested real-time |
1090 |
// Note: the number of shares is not tested real-time |
Lines 1089-1105
function AdjustRemark() {
Link Here
|
1089 |
if ( perms==2 ) { |
1092 |
if ( perms==2 ) { |
1090 |
$("#anyone_remark").show(); |
1093 |
$("#anyone_remark").show(); |
1091 |
$("#staff_remark").hide(); |
1094 |
$("#staff_remark").hide(); |
|
|
1095 |
$("#permitted_staff_remark").hide(); |
1092 |
} else if ( perms==3 ) { |
1096 |
} else if ( perms==3 ) { |
1093 |
$("#anyone_remark").hide(); |
1097 |
$("#anyone_remark").hide(); |
1094 |
$("#staff_remark").show(); |
1098 |
$("#staff_remark").show(); |
|
|
1099 |
$("#permitted_staff_remark").hide(); |
1100 |
} else if ( perms==4 ) { |
1101 |
$("#anyone_remark").hide(); |
1102 |
$("#staff_remark").hide(); |
1103 |
$("#permitted_staff_remark").show(); |
1095 |
} |
1104 |
} |
1096 |
[% ELSE %] |
1105 |
[% ELSE %] |
1097 |
$("#anyone_remark").hide(); |
1106 |
$("#anyone_remark").hide(); |
1098 |
$("#staff_remark").hide(); |
1107 |
$("#staff_remark").hide(); |
|
|
1108 |
$("#permitted_staff_remark").hide(); |
1099 |
[% END %] |
1109 |
[% END %] |
1100 |
} else { // public==1 |
1110 |
} else { // public==1 |
1101 |
$("#anyone_remark").hide(); |
1111 |
$("#anyone_remark").hide(); |
1102 |
$("#staff_remark").hide(); |
1112 |
$("#staff_remark").hide(); |
|
|
1113 |
$("#permitted_staff_remark").hide(); |
1103 |
} |
1114 |
} |
1104 |
} |
1115 |
} |
1105 |
</script> |
1116 |
</script> |
1106 |
- |
|
|