|
Lines 418-424
Link Here
|
| 418 |
<td class="copynumber"> |
418 |
<td class="copynumber"> |
| 419 |
<input |
419 |
<input |
| 420 |
disabled="disabled" |
420 |
disabled="disabled" |
| 421 |
type="radio" |
421 |
type="[% reserve_input_type | html %]" |
| 422 |
aria-label="Cannot be put on hold" |
422 |
aria-label="Cannot be put on hold" |
| 423 |
class="checkitem" |
423 |
class="checkitem" |
| 424 |
name="checkitem" |
424 |
name="checkitem" |
|
Lines 578-594
Link Here
|
| 578 |
toggleLink.text($(this).is(':visible') ? _("Hide options") : _("Show more options")); |
578 |
toggleLink.text($(this).is(':visible') ? _("Hide options") : _("Show more options")); |
| 579 |
}); |
579 |
}); |
| 580 |
}); |
580 |
}); |
| 581 |
if( $(".holddatefrom").prop('required') || $(".futuredate").prop('required') ) $(".toggle-hold-options").click(); |
581 |
if( $(".holddatefrom").prop('required') || $(".futuredate").prop('required') ) $(".toggle-hold-options").trigger('click'); |
| 582 |
|
582 |
|
| 583 |
// Hides all 'specific copy' table rows on load. |
583 |
// Hides all 'specific copy' table rows on load. |
| 584 |
$(".copiesrow").hide(); |
584 |
$(".copiesrow").hide(); |
| 585 |
|
585 |
|
| 586 |
[% FOREACH bibitemloo IN bibitemloop %] |
586 |
[% FOREACH bibitemloo IN bibitemloop %] |
| 587 |
[% IF bibitemloo.force_hold %] |
587 |
[% IF bibitemloo.force_hold %] |
| 588 |
if( $("#to[% bibitemloo.biblionumber | html %]").parent(":hidden").length ) |
588 |
if( $("#hold-options-[% bibitemloo.biblionumber | html %]").is(":hidden") ) |
| 589 |
$("#toggle-hold-options-[% bibitemloo.biblionumber | html %]").click(); |
589 |
$("#toggle-hold-options-[% bibitemloo.biblionumber | html %]").trigger('click'); |
| 590 |
$("#reqspecific_[% bibitemloo.biblionumber | html %]").click(); |
590 |
$("#reqspecific_[% bibitemloo.biblionumber | html %]").prop('checked','checked'); |
| 591 |
$("#copiesrow_[% bibitemloo.biblionumber | html %]").show(); |
591 |
$("#copiesrow_[% bibitemloo.biblionumber | html %]").css('display',''); |
| 592 |
[% END %] |
592 |
[% END %] |
| 593 |
[% END %] |
593 |
[% END %] |
| 594 |
|
594 |
|
|
Lines 692-698
Link Here
|
| 692 |
// If required hold note is empty, make it visible |
692 |
// If required hold note is empty, make it visible |
| 693 |
if( $("#holdnotes_"+biblioNum).attr( 'required' ) && $("#holdnotes_"+biblioNum).val() == '' ) { |
693 |
if( $("#holdnotes_"+biblioNum).attr( 'required' ) && $("#holdnotes_"+biblioNum).val() == '' ) { |
| 694 |
if( !$("#hold-options-"+biblioNum).is(':visible')) { |
694 |
if( !$("#hold-options-"+biblioNum).is(':visible')) { |
| 695 |
$("#toggle-hold-options-"+biblioNum).click(); |
695 |
$("#toggle-hold-options-"+biblioNum).trigger('click'); |
| 696 |
} |
696 |
} |
| 697 |
} |
697 |
} |
| 698 |
|
698 |
|
|
Lines 754-760
Link Here
|
| 754 |
$(this).DataTable({ |
754 |
$(this).DataTable({ |
| 755 |
dom: "t", |
755 |
dom: "t", |
| 756 |
initComplete: function() { |
756 |
initComplete: function() { |
|
|
757 |
// Only select first radio button (if any) |
| 757 |
this.find("input:radio").first().prop("checked", true ); |
758 |
this.find("input:radio").first().prop("checked", true ); |
|
|
759 |
// If there is only one checkbox, select that one |
| 760 |
if( this.find("tr.holdable input:checkbox").length == 1 ) |
| 761 |
this.find("tr.holdable input:checkbox").prop("checked", true ); |
| 758 |
}, |
762 |
}, |
| 759 |
paging: false |
763 |
paging: false |
| 760 |
}); |
764 |
}); |
| 761 |
- |
|
|