Link Here
|
23 |
}); |
23 |
}); |
24 |
} |
24 |
} |
25 |
if (CAN_user_borrowers_edit_borrowers) { |
25 |
if (CAN_user_borrowers_edit_borrowers) { |
26 |
$("#renewpatron").click(function () { |
26 |
$("#renewpatron").click(function (e) { |
|
|
27 |
e.preventDefault(); |
27 |
confirm_reregistration(); |
28 |
confirm_reregistration(); |
28 |
$(".btn-group").removeClass("open"); |
|
|
29 |
return false; |
30 |
}); |
29 |
}); |
|
|
30 |
|
31 |
$("#updatechild").click(function (e) { |
31 |
$("#updatechild").click(function (e) { |
|
|
32 |
e.preventDefault(); |
32 |
if ($(this).data("toggle") == "tooltip") { |
33 |
if ($(this).data("toggle") == "tooltip") { |
33 |
// Disabled menu option has tooltip attribute |
34 |
// Disabled menu option has tooltip attribute |
34 |
e.preventDefault(); |
|
|
35 |
} else { |
35 |
} else { |
36 |
update_child(); |
36 |
update_child(); |
37 |
$(".btn-group").removeClass("open"); |
|
|
38 |
} |
37 |
} |
39 |
}); |
38 |
}); |
40 |
} |
39 |
} |
Link Here
|
47 |
); |
46 |
); |
48 |
}); |
47 |
}); |
49 |
|
48 |
|
50 |
$("#exportcheckins").click(function () { |
49 |
$("#exportcheckins").click(function (e) { |
|
|
50 |
e.preventDefault(); |
51 |
export_barcodes(); |
51 |
export_barcodes(); |
52 |
$(".btn-group").removeClass("open"); |
|
|
53 |
return false; |
54 |
}); |
52 |
}); |
55 |
$("#print_overdues").click(function () { |
53 |
$("#print_overdues").click(function (e) { |
|
|
54 |
e.preventDefault(); |
56 |
window.open( |
55 |
window.open( |
57 |
"/cgi-bin/koha/members/print_overdues.pl?borrowernumber=" + |
56 |
"/cgi-bin/koha/members/print_overdues.pl?borrowernumber=" + |
58 |
borrowernumber, |
57 |
borrowernumber, |
59 |
"printwindow" |
58 |
"printwindow" |
60 |
); |
59 |
); |
61 |
$(".btn-group").removeClass("open"); |
|
|
62 |
return false; |
63 |
}); |
60 |
}); |
64 |
$(".printslip").click(function () { |
61 |
$(".printslip").click(function (e) { |
|
|
62 |
e.preventDefault(); |
65 |
let slip_code = $(this).data("code"); |
63 |
let slip_code = $(this).data("code"); |
66 |
let clear_screen = $(this).data("clear"); |
64 |
let clear_screen = $(this).data("clear"); |
67 |
if (slip_code == "printsummary") { |
65 |
if (slip_code == "printsummary") { |
Link Here
|
81 |
} |
79 |
} |
82 |
if (clear_screen) { |
80 |
if (clear_screen) { |
83 |
window.location.replace("/cgi-bin/koha/circ/circulation.pl"); |
81 |
window.location.replace("/cgi-bin/koha/circ/circulation.pl"); |
84 |
} else { |
|
|
85 |
$(".btn-group").removeClass("open"); |
86 |
return false; |
87 |
} |
82 |
} |
88 |
}); |
83 |
}); |
89 |
$("#searchtohold").click(function () { |
84 |
$("#searchtohold").click(function () { |