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

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/pages/circulation.js (+9 lines)
Lines 49-54 $(document).ready(function() { Link Here
49
    var checkout_settings = $(".checkout-settings");
49
    var checkout_settings = $(".checkout-settings");
50
    var checkout_settings_icon = $(".checkout-settings-icon");
50
    var checkout_settings_icon = $(".checkout-settings-icon");
51
51
52
    // If any checkboxes in the checkout settings are selected, show the settings by default
53
    if ( $(".checkout-settings input:checked,#duedatespec[value!='']").length ) {
54
        checkout_settings.show();
55
        checkout_settings_icon.removeClass("fa-caret-right").addClass("fa-caret-down");
56
    } else {
57
        checkout_settings.hide();
58
        checkout_settings_icon.removeClass("fa-caret-down").addClass("fa-caret-right");
59
    }
60
52
    $("#show-checkout-settings a").on("click",function(){
61
    $("#show-checkout-settings a").on("click",function(){
53
        if( checkout_settings.is(":hidden")){
62
        if( checkout_settings.is(":hidden")){
54
            checkout_settings.show();
63
            checkout_settings.show();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-20 lines)
Lines 661-685 No patron matched <span class="ex">[% message %]</span> Link Here
661
661
662
    <div class="checkout-settings">
662
    <div class="checkout-settings">
663
663
664
            <span class="circ-override-high-holds">
665
                [% IF Koha.Preference('decreaseLoanHighHolds') %]
666
                    [% IF NEEDSCONFIRMATION %]
667
                        [% IF override_high_holds %]
668
                            <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" checked="checked"/>
669
                        [% ELSE %]
670
                            <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled"/>
671
                        [% END %]
672
                    [% ELSE %]
673
                        [% IF override_high_holds %]
674
                            <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" checked="checked" />
675
                        [% ELSE %]
676
                            <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" />
677
                        [% END %]
678
                    [% END %]
679
                    <label for="override_high_holds">Don't decrease loan length based on holds</label>
680
                [% END %]
681
            </span>
682
683
        [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
664
        [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
684
            [% IF ( SpecifyDueDate ) %]
665
            [% IF ( SpecifyDueDate ) %]
685
                <div id="specify-due-date" class="checkout-setting">
666
                <div id="specify-due-date" class="checkout-setting">
686
- 

Return to bug 11565