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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt (-2 / +1 lines)
Lines 521-527 Link Here
521
        $(".hold-options").hide();
521
        $(".hold-options").hide();
522
        var OPACMandatoryHoldDates = "[% Koha.Preference('OPACMandatoryHoldDates') | html %]";
522
        var OPACMandatoryHoldDates = "[% Koha.Preference('OPACMandatoryHoldDates') | html %]";
523
        if( OPACMandatoryHoldDates == "start" || OPACMandatoryHoldDates == "both" ) {
523
        if( OPACMandatoryHoldDates == "start" || OPACMandatoryHoldDates == "both" ) {
524
            $(".holddatefrom").prop( 'required', true ).siblings(".required_label").addClass('required').show();
524
            $(".holddatefrom").val("").prop( 'required', true ).siblings(".required_label").addClass('required').show();
525
        }
525
        }
526
        if( OPACMandatoryHoldDates == "end"   || OPACMandatoryHoldDates == "both" ) {
526
        if( OPACMandatoryHoldDates == "end"   || OPACMandatoryHoldDates == "both" ) {
527
            $(".futuredate").prop( 'required', true ).siblings(".required_label").addClass('required').show();
527
            $(".futuredate").prop( 'required', true ).siblings(".required_label").addClass('required').show();
528
- 

Return to bug 35977