}
.close:hover {
- color: #538200;
+ color: inherit;
filter: inherit;
font-size: inherit;
opacity: inherit;
}
+a.close:hover {
+ color: #538200;
+}
+
/* Redefine a new style for Bootstrap's class "close" since we use that already */
/* Use <a class="closebtn" href="#">×</a> */
.alert .closebtn{position:relative;top:-2px;right:-21px;line-height:20px;}
// Enforce Superlibrarian Privilege Mutual Exclusivity
if($('input[id="flag-0"]:checked').length){
if ($('input[name="flag"]:checked').length > 1){
- alert('Inconsistency Detected!\n\nThe superlibrarian privilege is mutually exclusive of other privileges, as it includes them all.\n\nThis patron\'s privileges will now be reset to include only superlibrarian.');
+ alert(_("Inconsistency detected! The superlibrarian privilege is mutually exclusive of other privileges, as it includes them all. This patron's privileges will now be reset to include only superlibrarian."));
}
$('input[name="flag"]').each(function() {
}
});
+ $(".flag").on("change",function(){
+ if( $(this).hasClass("parent") ){
+ toggleChildren(this);
+ } else {
+ toggleParent(this);
+ }
+ });
+
});
-</script>
-<!-- manage checking/unchecking parent permissions -->
-<script type="text/javascript">
+
+ // manage checking/unchecking parent permissions
var originalChildStates = {}; /* keep track of subpermission checkbox values
so that user can recover from accidentally
toggling a parent/module permission */
<li>
[% END %]
[% IF ( loo.checked ) %]
- <input type="checkbox" id="flag-[% loo.bit %]" name="flag" value="[% loo.flag %]" checked="checked" onclick="toggleChildren(this)" />
+ <input type="checkbox" class="flag parent" id="flag-[% loo.bit %]" name="flag" value="[% loo.flag %]" checked="checked" />
[% ELSE %]
- <input type="checkbox" id="flag-[% loo.bit %]" name="flag" value="[% loo.flag %]" onclick="toggleChildren(this)" />
+ <input type="checkbox" class="flag parent" id="flag-[% loo.bit %]" name="flag" value="[% loo.flag %]" />
[% END %]
<label class="permissioncode" for="flag-[% loo.bit %]">[% loo.flag %]</label>
<span class="permissiondesc">[% PROCESS main_permissions name=loo.flag %]</span>
[% FOREACH sub_perm_loo IN loo.sub_perm_loop %]
<li>
[% IF ( sub_perm_loo.checked ) %]
- <input type="checkbox" id="[% sub_perm_loo.id %]" name="flag" value="[% sub_perm_loo.perm %]" checked="checked" onclick="toggleParent(this)" />
+ <input type="checkbox" class="flag child" id="[% sub_perm_loo.id %]" name="flag" value="[% sub_perm_loo.perm %]" checked="checked" />
[% ELSE %]
- <input type="checkbox" id="[% sub_perm_loo.id %]" name="flag" value="[% sub_perm_loo.perm %]" onclick="toggleParent(this)" />
+ <input type="checkbox" class="flag child" id="[% sub_perm_loo.id %]" name="flag" value="[% sub_perm_loo.perm %]" />
[% END %]
<label class="permissioncode" for="[% sub_perm_loo.id %]">[% sub_perm_loo.code %]</label>
<span class="permissiondesc">[% PROCESS sub_permissions name=sub_perm_loo.code %]</span>
e.preventDefault();
filterByFirstLetterSurname($(this).text());
});
+ $("#select_all").on("click",function(e){
+ e.preventDefault();
+ $(".selection").prop("checked", true);
+ });
+ $("#clear_all").on("click",function(e){
+ e.preventDefault();
+ $(".selection").prop("checked", false);
+ });
+ $("#clear_search").on("click",function(e){
+ e.preventDefault();
+ clearFilters(true);
+ });
});
var dtMemberResults;
[% IF CAN_user_tools_manage_patron_lists %]
<div id="searchheader">
<div>
- <a href="javascript:void(0)" onclick="$('.selection').prop('checked', true)">Select all</a>
+ <a href="#" id="select_all"><i class="fa fa-check"></i> Select all</a>
|
- <a href="javascript:void(0)" onclick="$('.selection').prop('checked', false)">Clear all</a>
+ <a href="#" id="clear_all"><i class="fa fa-remove"></i> Clear all</a>
|
<span>
<label for="add_to_patron_list">Add selected patrons to:</label>
</ol>
<fieldset class="action">
<input type="submit" value="Search" />
- <input type="button" value="Clear" onclick="clearFilters(true);" />
+ <input type="button" value="Clear" id="clear_search" />
</fieldset>
</fieldset>
</form>
[% END %]
[% IF ( fax ) %]<li><span class="label">Fax: </span>[% fax %]</li>[% END %]
[% UNLESS ( I ) %]
- [% IF ( email ) %]<li><span class="label">Primary email:</span><a href="mailto:[% email %]">[% email %]</a></li>[% END %]
- [% IF ( emailpro ) %]<li><span class="label">Secondary email: </span><a href="mailto:[% emailpro %]">[% emailpro %]</a></li>[% END %]
+ [% IF ( email ) %]<li class="email"><span class="label">Primary email:</span><a href="mailto:[% email %]">[% email %]</a></li>[% END %]
+ [% IF ( emailpro ) %]<li class="email"><span class="label">Secondary email: </span><a href="mailto:[% emailpro %]">[% emailpro %]</a></li>[% END %]
[% END %]
<li><span class="label">Initials: </span>[% initials %]</li>
<li><span class="label">Date of birth:</span>[% dateofbirth | $KohaDates %]</li>
</ol>
</div>
</div>
- <fieldset class="action"><input type="button" class="submit" value="Close window" onclick="window.close();" /></fieldset>
+ <fieldset class="action"><input type="button" class="close" value="Close window" /></fieldset>
</div>
</div>
</div>
hour: 23,
minute: 59
});
+ $("#view_restrictions").on("click",function(){
+ $('#debarments-tab-link').click();
+ });
});
function uncheck_sibling(me){
nodename=me.getAttribute("name");
[% IF ( debarredcomment ) %]
with the explanation: <i>[% debarredcomment | html_line_break %]</i>
[% END %]
- <a href="#reldebarments" onclick="$('#debarments-tab-link').click()">View restrictions</a>
+ <a href="#reldebarments" id="view_restrictions">View restrictions</a>
</li>
[% END %]
[% IF ( gonenoaddress ) %]<li class="blocker">Patron's address is in doubt.</li>[% END %]
<input type="hidden" name="op" value="resend_notice" />
<input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
<input type="hidden" name="message_id" value="[% QUEUED_MESSAGE.message_id %]" />
- <a href="#" onclick="$(this).closest('form').submit();return false;" title="Attempt to resend the notice">Resend</a>
+ <fieldset class="action">
+ <button class="btn btn-mini" type="submit">Resend</button>
+ </fieldset>
</form>
</div>
[% END %]