|
Lines 69-82
Link Here
|
| 69 |
[% END %] |
69 |
[% END %] |
| 70 |
[% IF ( loo.checked ) %] |
70 |
[% IF ( loo.checked ) %] |
| 71 |
[% IF disable_superlibrarian_privs && loo.bit == 0 %] |
71 |
[% IF disable_superlibrarian_privs && loo.bit == 0 %] |
| 72 |
<input type="checkbox" disabled="disabled" data-bit="[% loo.bit | html %]" id="flag-[% loo.bit | html %]_disabled" class="parent flag superlib" name="flag" value="[% loo.flag | html %]" checked="checked" title="The system preference ProtectSuperlibrarianPrivileges is enabled" /> |
72 |
<input type="checkbox" disabled="disabled" data-bit="0" id="flag-0" class="parent flag superlib" name="flag" value="[% loo.flag | html %]" checked="checked" title="The system preference ProtectSuperlibrarianPrivileges is enabled" /> |
| 73 |
<input type="hidden" id="flag-[% loo.bit | html %]" name="flag" value="[% loo.flag | html %]" > |
73 |
<input type="hidden" id="flag-0" name="flag" value="[% loo.flag | html %]" > |
| 74 |
[% ELSE %] |
74 |
[% ELSE %] |
| 75 |
<input type="checkbox" data-bit="[% loo.bit | html %]" id="flag-[% loo.bit | html %]" class="parent flag" name="flag" value="[% loo.flag | html %]" checked="checked" /> |
75 |
<input type="checkbox" data-bit="[% loo.bit | html %]" id="flag-[% loo.bit | html %]" class="parent flag" name="flag" value="[% loo.flag | html %]" checked="checked" /> |
| 76 |
[% END %] |
76 |
[% END %] |
| 77 |
[% ELSE %] |
77 |
[% ELSE %] |
| 78 |
[% IF disable_superlibrarian_privs && loo.bit == 0 %] |
78 |
[% IF disable_superlibrarian_privs && loo.bit == 0 %] |
| 79 |
<input type="checkbox" disabled="disabled" class="flag parent" data-bit="[% loo.bit | html %]" id="flag-[% loo.bit | html %]_disabled" name="flag" value="[% loo.flag | html %]" title="The system preference ProtectSuperlibrarianPrivileges is enabled" /> |
79 |
<input type="checkbox" disabled="disabled" class="flag parent" data-bit="0" id="flag-0" name="flag" value="[% loo.flag | html %]" title="The system preference ProtectSuperlibrarianPrivileges is enabled" /> |
| 80 |
[% ELSE %] |
80 |
[% ELSE %] |
| 81 |
<input type="checkbox" class="flag parent" data-bit="[% loo.bit | html %]" id="flag-[% loo.bit | html %]" name="flag" value="[% loo.flag | html %]" /> |
81 |
<input type="checkbox" class="flag parent" data-bit="[% loo.bit | html %]" id="flag-[% loo.bit | html %]" name="flag" value="[% loo.flag | html %]" /> |
| 82 |
[% END %] |
82 |
[% END %] |
|
Lines 131-140
Link Here
|
| 131 |
$(".flag").attr("disabled", false); |
131 |
$(".flag").attr("disabled", false); |
| 132 |
$(".flag").prop("checked", true); |
132 |
$(".flag").prop("checked", true); |
| 133 |
$("#flag-0").prop("checked", false); |
133 |
$("#flag-0").prop("checked", false); |
|
|
134 |
[% IF disable_superlibrarian_privs %] |
| 135 |
$("#flag-0").prop("disabled", true); |
| 136 |
[% END %] |
| 134 |
return false; |
137 |
return false; |
| 135 |
}); |
138 |
}); |
| 136 |
$("#UncheckAllFlags").on("click",function(){ |
139 |
$("#UncheckAllFlags").on("click",function(){ |
| 137 |
$(".flag").attr("disabled", false); |
140 |
$(".flag").attr("disabled", false); |
|
|
141 |
[% IF disable_superlibrarian_privs %] |
| 142 |
$("#flag-0").prop("disabled", true); |
| 143 |
[% END %] |
| 138 |
$(".flag").prop("checked", false); |
144 |
$(".flag").prop("checked", false); |
| 139 |
return false; |
145 |
return false; |
| 140 |
}); |
146 |
}); |
| 141 |
- |
|
|