Lines 160-166
Link Here
|
160 |
[% IF ( total ) %] |
160 |
[% IF ( total ) %] |
161 |
|
161 |
|
162 |
<div class="searchresults"> |
162 |
<div class="searchresults"> |
163 |
<form action="/cgi-bin/koha/opac-search.pl" method="get" name="bookbag_form" id="bookbag_form" class="checkboxed"> |
163 |
<form action="/cgi-bin/koha/opac-search.pl" method="get" name="bookbag_form" id="bookbag_form"> |
164 |
[% IF ( searchdesc ) %] |
164 |
[% IF ( searchdesc ) %] |
165 |
[% FOREACH QUERY_INPUT IN QUERY_INPUTS %] |
165 |
[% FOREACH QUERY_INPUT IN QUERY_INPUTS %] |
166 |
<input type="hidden" name="[% QUERY_INPUT.input_name | html %]" value="[% QUERY_INPUT.input_value | html %]"/> |
166 |
<input type="hidden" name="[% QUERY_INPUT.input_name | html %]" value="[% QUERY_INPUT.input_value | html %]"/> |
Lines 625-631
Link Here
|
625 |
[% END %] |
625 |
[% END %] |
626 |
[% IF ( OverDriveEnabled ) %][% Asset.js("js/overdrive.js") | $raw %][% END %] |
626 |
[% IF ( OverDriveEnabled ) %][% Asset.js("js/overdrive.js") | $raw %][% END %] |
627 |
[% IF ( RecordedBooksEnabled ) %][% Asset.js("js/recordedbooks.js") | $raw %][% END %] |
627 |
[% IF ( RecordedBooksEnabled ) %][% Asset.js("js/recordedbooks.js") | $raw %][% END %] |
628 |
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] |
|
|
629 |
[% Asset.js("js/authtoresults.js") | $raw %] |
628 |
[% Asset.js("js/authtoresults.js") | $raw %] |
630 |
[% Asset.js("lib/hc-sticky.js") | $raw %] |
629 |
[% Asset.js("lib/hc-sticky.js") | $raw %] |
631 |
[% IF ( OpacHighlightedWords ) %] |
630 |
[% IF ( OpacHighlightedWords ) %] |
Lines 710-716
Link Here
|
710 |
|
709 |
|
711 |
function enableCheckboxActions(){ |
710 |
function enableCheckboxActions(){ |
712 |
// Enable/disable controls if checkboxes are checked |
711 |
// Enable/disable controls if checkboxes are checked |
713 |
var checkedBoxes = $(".checkboxed input:checkbox:checked"); |
712 |
var checkedBoxes = $(".cb:checked"); |
714 |
var controls = $("#selections-toolbar .links a, #selections-toolbar .links input, #selections-toolbar .links select, #selections-toolbar .links label, #selections-toolbar .links button"); |
713 |
var controls = $("#selections-toolbar .links a, #selections-toolbar .links input, #selections-toolbar .links select, #selections-toolbar .links label, #selections-toolbar .links button"); |
715 |
if ($(checkedBoxes).size()) { |
714 |
if ($(checkedBoxes).size()) { |
716 |
$("#selections").html(_("With selected titles: ")); |
715 |
$("#selections").html(_("With selected titles: ")); |
Lines 879-893
Link Here
|
879 |
return false; |
878 |
return false; |
880 |
} |
879 |
} |
881 |
} |
880 |
} |
882 |
$("#CheckAll").click(function(){ |
881 |
$("#CheckAll").on("click",function(e){ |
883 |
$("#bookbag_form").checkCheckboxes(); |
882 |
e.preventDefault(); |
|
|
883 |
$(".cb").prop("checked", true); |
884 |
enableCheckboxActions(); |
884 |
enableCheckboxActions(); |
885 |
return false; |
|
|
886 |
}); |
885 |
}); |
887 |
$("#CheckNone").click(function(){ |
886 |
$("#CheckNone").on("click",function(e){ |
888 |
$("#bookbag_form").unCheckCheckboxes(); |
887 |
e.preventDefault(); |
|
|
888 |
$(".cb").prop("checked", false); |
889 |
enableCheckboxActions(); |
889 |
enableCheckboxActions(); |
890 |
return false; |
|
|
891 |
}); |
890 |
}); |
892 |
|
891 |
|
893 |
[% IF ( ( Koha.Preference( 'RequestOnOpac' ) == 1 ) && ( Koha.Preference( 'opacuserlogin' ) == 1 ) && DisplayMultiPlaceHold ) %] |
892 |
[% IF ( ( Koha.Preference( 'RequestOnOpac' ) == 1 ) && ( Koha.Preference( 'opacuserlogin' ) == 1 ) && DisplayMultiPlaceHold ) %] |