e5001c5a37
I believe I suggested a typo - trying to fix it here. Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
17 lines
798 B
JavaScript
17 lines
798 B
JavaScript
function select_user(borrowernumber, borrower) {
|
|
var suggested = '<input type="hidden" id="suggestedby" name="suggestedby" value="' + borrowernumber + '" />';
|
|
suggested += '<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=' + borrowernumber + '">';
|
|
suggested += borrower.surname + ', ' + borrower.firstname + ' (' + borrower.cardnumber + ')';
|
|
suggested += '</a> ';
|
|
suggested += borrower.branchname + ' (' + borrower.category_description + ')';
|
|
$("#tdsuggestedby").html(suggested);
|
|
return 0;
|
|
}
|
|
|
|
$(document).ready(function(){
|
|
$('body').on('click', '#suggester_search', function(e) {
|
|
e.preventDefault();
|
|
var newin = window.open('suggester_search.pl','popup','width=600,height=400,resizable=no,toolbar=false,scrollbars=yes,top');
|
|
});
|
|
|
|
});
|