Lines 354-360
Link Here
|
354 |
</div> <!-- / #selections-toolbar --> |
354 |
</div> <!-- / #selections-toolbar --> |
355 |
</div> <!-- /#floating --> |
355 |
</div> <!-- /#floating --> |
356 |
|
356 |
|
357 |
<form action="/cgi-bin/koha/opac-shelves.pl" method="post" id="myform" name="myform" class="checkboxed"> |
357 |
<form action="/cgi-bin/koha/opac-shelves.pl" method="post" id="myform" name="myform"> |
358 |
[% IF can_manage_shelf %] |
358 |
[% IF can_manage_shelf %] |
359 |
<input type="hidden" name="op" value="remove_biblios" /> |
359 |
<input type="hidden" name="op" value="remove_biblios" /> |
360 |
<input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" /> |
360 |
<input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" /> |
Lines 804-810
Link Here
|
804 |
|
804 |
|
805 |
[% INCLUDE 'opac-bottom.inc' %] |
805 |
[% INCLUDE 'opac-bottom.inc' %] |
806 |
[% BLOCK jsinclude %] |
806 |
[% BLOCK jsinclude %] |
807 |
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] |
|
|
808 |
[% Asset.js("lib/hc-sticky.js") | $raw %] |
807 |
[% Asset.js("lib/hc-sticky.js") | $raw %] |
809 |
[% IF OpenLibraryCovers || OpenLibrarySearch %] |
808 |
[% IF OpenLibraryCovers || OpenLibrarySearch %] |
810 |
[% Asset.js("js/openlibrary.js") | $raw %] |
809 |
[% Asset.js("js/openlibrary.js") | $raw %] |
Lines 875-881
var MSG_CONFIRM_REMOVE_SHARE = _("Are you sure you want to remove this share?");
Link Here
|
875 |
|
874 |
|
876 |
function enableCheckboxActions(){ |
875 |
function enableCheckboxActions(){ |
877 |
// Enable/disable controls if checkboxes are checked |
876 |
// Enable/disable controls if checkboxes are checked |
878 |
var checkedBoxes = $(".checkboxed input:checkbox:checked"); |
877 |
var checkedBoxes = $(".cb:checked"); |
879 |
if ($(checkedBoxes).size()) { |
878 |
if ($(checkedBoxes).size()) { |
880 |
$("#selections").html(_("With selected titles: ")); |
879 |
$("#selections").html(_("With selected titles: ")); |
881 |
$("#selections-toolbar .links a").removeClass("disabled"); |
880 |
$("#selections-toolbar .links a").removeClass("disabled"); |
Lines 899-913
$(function() {
Link Here
|
899 |
}); |
898 |
}); |
900 |
[% END %] |
899 |
[% END %] |
901 |
|
900 |
|
902 |
$("#CheckAll").click(function(){ |
901 |
$("#CheckAll").on("click",function(e){ |
903 |
$(".checkboxed").checkCheckboxes(); |
902 |
e.preventDefault(); |
|
|
903 |
$(".cb").prop("checked", true); |
904 |
enableCheckboxActions(); |
904 |
enableCheckboxActions(); |
905 |
return false; |
|
|
906 |
}); |
905 |
}); |
907 |
$("#CheckNone").click(function(){ |
906 |
$("#CheckNone").on("click",function(e){ |
908 |
$(".checkboxed").unCheckCheckboxes(); |
907 |
e.preventDefault(); |
|
|
908 |
$(".cb").prop("checked", false); |
909 |
enableCheckboxActions(); |
909 |
enableCheckboxActions(); |
910 |
return false; |
|
|
911 |
}); |
910 |
}); |
912 |
|
911 |
|
913 |
$(".cb").click(function(){ |
912 |
$(".cb").click(function(){ |
Lines 967-973
$(function() {
Link Here
|
967 |
}); |
966 |
}); |
968 |
|
967 |
|
969 |
$("#myform").submit(function(){ |
968 |
$("#myform").submit(function(){ |
970 |
var checkedBoxes = $(".checkboxed input:checkbox:checked"); |
969 |
var checkedBoxes = $(".cb:checked"); |
971 |
var numchecked = $(checkedBoxes).size(); |
970 |
var numchecked = $(checkedBoxes).size(); |
972 |
if (numchecked) { |
971 |
if (numchecked) { |
973 |
if( numchecked > 1 ){ |
972 |
if( numchecked > 1 ){ |