X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Fmembers%2Fmember-flags.tt;h=039c8ecdbf9e1a743a611e81671ab41b1fe5b416;hb=1fcdef312be42c673d4ae017e3abe7722aba6048;hp=d9d95af066a09b22a8d38d23034d6d5aa3cc7853;hpb=ba49225e25b28a7da1d8afaf7bdca51a2efc600a;p=koha.git diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt index d9d95af066..039c8ecdbf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt @@ -12,7 +12,7 @@ // 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() { @@ -39,10 +39,17 @@ } }); + $(".flag").on("change",function(){ + if( $(this).hasClass("parent") ){ + toggleChildren(this); + } else { + toggleParent(this); + } + }); + }); - - -