/* global borrowernumber advsearch dateformat __ CAN_user_borrowers_delete_borrowers CAN_user_borrowers_edit_borrowers number_of_adult_categories destination Sticky Cookies*/
$(document).ready(function(){
-
- $("#filteraction_off, #filteraction_on").on('click', function(e) {
- e.preventDefault();
- $('#filters').toggle();
- $('.filteraction').toggle();
- if (typeof Sticky !== "undefined" && typeof hcSticky === "function") {
- Sticky.hcSticky('update');
- }
- });
- if( advsearch ){
- $("#filteraction_on").toggle();
- $("#filters").show();
- } else {
- $("#filteraction_off").toggle();
- }
-
searchfield_date_tooltip("");
searchfield_date_tooltip('_filter');
$("#searchfieldstype").change(function() {
});
}
+ $(".delete_message").click(function(){
+ return window.confirm( __("Are you sure you want to delete this message? This cannot be undone.") );
+ });
+
$("#updatechild, #patronflags, #renewpatron, #deletepatron, #exportbarcodes").tooltip();
$("#exportcheckins").click(function(){
export_barcodes();
printx_window("slip");
window.location.replace("/cgi-bin/koha/circ/circulation.pl");
});
+ $("#printclearscreenq").click(function(){
+ printx_window("qslip");
+ window.location.replace("/cgi-bin/koha/circ/circulation.pl");
+ });
$("#searchtohold").click(function(){
searchToHold();
return false;
function searchToHold(){
var date = new Date();
date.setTime(date.getTime() + (10 * 60 * 1000));
- Cookies.set("holdfor", borrowernumber, { path: "/", expires: date });
+ Cookies.set("holdfor", borrowernumber, { path: "/", expires: date, sameSite: 'Lax' });
location.href="/cgi-bin/koha/catalogue/search.pl";
}