Bug 22150: (follow-up) ensuring superlibrarian flag not checked when select all
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 22 Jan 2021 13:19:54 +0000 (14:19 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 22 Jan 2021 13:59:27 +0000 (14:59 +0100)
Use #flag-0 to select the superlibrarian checkbox

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt

index 74e6895dbd5ea417d901ab0883105eba076bb2c8..c28655733ecf4a7465c72216f01d498c669958ea 100644 (file)
             $("#CheckAllFlags").on("click",function(){
                 $(".flag").attr("disabled", false);
                 $(".flag").prop("checked", true);
-                $(".flag:first").prop("checked", false);
+                $("#flag-0").prop("checked", false);
                 return false;
             });
             $("#UncheckAllFlags").on("click",function(){