View | Details | Raw Unified | Return to bug 22553
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt (-7 / +10 lines)
Lines 195-207 Link Here
195
195
196
            $(".flag").on("change",function(e){
196
            $(".flag").on("change",function(e){
197
                e.preventDefault();
197
                e.preventDefault();
198
                var bit = $(this).data("bit");
198
                if( $(this).hasClass("child") ){
199
                if( $(this).is(":checked") ){
199
                    $(this).closest(".parent").find(".flag.parent").prop("checked", false);
200
                    $("#flag-" + bit + "-children").show().find(".flag").prop("checked", true);
201
                    $(".toggle-" + bit + ".togglechildren_on").hide();
202
                    $(".toggle-" + bit + ".togglechildren_off").show();
203
                } else {
200
                } else {
204
                    $("#flag-" + bit + "-children").show().find(".flag").prop("checked", false);
201
                    var bit = $(this).data("bit");
202
                    if( $(this).is(":checked") ){
203
                        $("#flag-" + bit + "-children").show().find(".flag").prop("checked", true);
204
                        $(".toggle-" + bit + ".togglechildren_on").hide();
205
                        $(".toggle-" + bit + ".togglechildren_off").show();
206
                    } else {
207
                        $("#flag-" + bit + "-children").show().find(".flag").prop("checked", false);
208
                    }
205
                }
209
                }
206
            });
210
            });
207
211
208
- 

Return to bug 22553