|
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 |
- |
|
|