Lines 516-529
Link Here
|
516 |
$(".toggle-hold-options").show(); |
516 |
$(".toggle-hold-options").show(); |
517 |
$(".hold-options").hide(); |
517 |
$(".hold-options").hide(); |
518 |
var OPACMandatoryHoldDates = "[% Koha.Preference('OPACMandatoryHoldDates') | html %]"; |
518 |
var OPACMandatoryHoldDates = "[% Koha.Preference('OPACMandatoryHoldDates') | html %]"; |
|
|
519 |
var requiredDiv = "<div class=\"required_label required\">" + _("Required") + "</div>"; |
519 |
if( OPACMandatoryHoldDates ) { |
520 |
if( OPACMandatoryHoldDates ) { |
520 |
if( OPACMandatoryHoldDates == "start" || OPACMandatoryHoldDates == "both" ) { |
521 |
if( OPACMandatoryHoldDates == "start" || OPACMandatoryHoldDates == "both" ) { |
521 |
$(".holddatefrom").prop( 'required', true ); |
522 |
$(".holddatefrom").prop( 'required', true ); |
522 |
$(".holddatefrom").parent().append('<div class="required_label required">Required</div>'); |
523 |
$(".holddatefrom").parent().append(requiredDiv); |
523 |
} |
524 |
} |
524 |
if( OPACMandatoryHoldDates == "end" || OPACMandatoryHoldDates == "both" ) { |
525 |
if( OPACMandatoryHoldDates == "end" || OPACMandatoryHoldDates == "both" ) { |
525 |
$(".futuredate").prop( 'required', true ); |
526 |
$(".futuredate").prop( 'required', true ); |
526 |
$(".futuredate").parent().append('<div class="required_label required">Required</div>'); |
527 |
$(".futuredate").parent().append(requiredDiv); |
527 |
} |
528 |
} |
528 |
} |
529 |
} |
529 |
$(".holddatefrom,.futuredate").prop("readOnly", true); |
530 |
$(".holddatefrom,.futuredate").prop("readOnly", true); |
530 |
- |
|
|