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 1097-1102
function AdjustRemark() {
Link Here
|
1097 |
if( perms < 2 ) { |
1099 |
if( perms < 2 ) { |
1098 |
$("#anyone_remark").hide(); |
1100 |
$("#anyone_remark").hide(); |
1099 |
$("#staff_remark").hide(); |
1101 |
$("#staff_remark").hide(); |
|
|
1102 |
$("#permitted_staff_remark").hide(); |
1100 |
} else if( public==0 ) { |
1103 |
} else if( public==0 ) { |
1101 |
// If we move to Private (without shares), show Anyone remark |
1104 |
// If we move to Private (without shares), show Anyone remark |
1102 |
// Note: the number of shares is not tested real-time |
1105 |
// Note: the number of shares is not tested real-time |
Lines 1104-1120
function AdjustRemark() {
Link Here
|
1104 |
if ( perms==2 ) { |
1107 |
if ( perms==2 ) { |
1105 |
$("#anyone_remark").show(); |
1108 |
$("#anyone_remark").show(); |
1106 |
$("#staff_remark").hide(); |
1109 |
$("#staff_remark").hide(); |
|
|
1110 |
$("#permitted_staff_remark").hide(); |
1107 |
} else if ( perms==3 ) { |
1111 |
} else if ( perms==3 ) { |
1108 |
$("#anyone_remark").hide(); |
1112 |
$("#anyone_remark").hide(); |
1109 |
$("#staff_remark").show(); |
1113 |
$("#staff_remark").show(); |
|
|
1114 |
$("#permitted_staff_remark").hide(); |
1115 |
} else if ( perms==4 ) { |
1116 |
$("#anyone_remark").hide(); |
1117 |
$("#staff_remark").hide(); |
1118 |
$("#permitted_staff_remark").show(); |
1110 |
} |
1119 |
} |
1111 |
[% ELSE %] |
1120 |
[% ELSE %] |
1112 |
$("#anyone_remark").hide(); |
1121 |
$("#anyone_remark").hide(); |
1113 |
$("#staff_remark").hide(); |
1122 |
$("#staff_remark").hide(); |
|
|
1123 |
$("#permitted_staff_remark").hide(); |
1114 |
[% END %] |
1124 |
[% END %] |
1115 |
} else { // public==1 |
1125 |
} else { // public==1 |
1116 |
$("#anyone_remark").hide(); |
1126 |
$("#anyone_remark").hide(); |
1117 |
$("#staff_remark").hide(); |
1127 |
$("#staff_remark").hide(); |
|
|
1128 |
$("#permitted_staff_remark").hide(); |
1118 |
} |
1129 |
} |
1119 |
} |
1130 |
} |
1120 |
</script> |
1131 |
</script> |
1121 |
- |
|
|