|
Lines 69-75
$(document).ready(function(){
Link Here
|
| 69 |
$("#searchtohold").click(function(){ |
69 |
$("#searchtohold").click(function(){ |
| 70 |
searchToHold(); |
70 |
searchToHold(); |
| 71 |
return false; |
71 |
return false; |
| 72 |
}) |
72 |
}); |
|
|
73 |
$("#select_patron_messages").on("change",function(){ |
| 74 |
$("#borrower_message").val( $(this).val() ); |
| 75 |
}); |
| 73 |
}); |
76 |
}); |
| 74 |
function confirm_deletion() { |
77 |
function confirm_deletion() { |
| 75 |
var is_confirmed = window.confirm(_("Are you sure you want to delete this patron? This cannot be undone.")); |
78 |
var is_confirmed = window.confirm(_("Are you sure you want to delete this patron? This cannot be undone.")); |
|
Lines 234-241
function searchToHold(){
Link Here
|
| 234 |
[% bor_notes = AuthorisedValues.Get( 'BOR_NOTES' ) %] |
237 |
[% bor_notes = AuthorisedValues.Get( 'BOR_NOTES' ) %] |
| 235 |
[% IF bor_notes %] |
238 |
[% IF bor_notes %] |
| 236 |
<li> |
239 |
<li> |
| 237 |
<label for="type">Predefined notes: </label> |
240 |
<label for="select_patron_messages">Predefined notes: </label> |
| 238 |
<select name="type" id="type" onchange="this.form.borrower_message.value=this.options[this.selectedIndex].value;"> |
241 |
<select name="type" id="select_patron_messages"> |
| 239 |
<option value="">Select note</option> |
242 |
<option value="">Select note</option> |
| 240 |
[% FOREACH bor_note IN bor_notes %] |
243 |
[% FOREACH bor_note IN bor_notes %] |
| 241 |
<option value="[% bor_note.lib %]">[% bor_note.lib %]</option> |
244 |
<option value="[% bor_note.lib %]">[% bor_note.lib %]</option> |
| 242 |
- |
|
|