Owen Leonard
3672df5226
This patch fixes a bug caused by the changes in Bug 19641. JavaScript embedded in circ-patron-search-results.inc executes before jQuery is loaded. This patch adds a separate javascript file which can be included both in circulation.tt and request.tt since both use the same include. To test, apply the patch and submit a patron name in the check out form. On the page of search results, clicking a table row should work the same as clicking the patron name link. Perform the same test during the hold process: Locate and place a hold on a title. In the patron search form, submit a patron name and test the behavior of the search results screen. Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
11 lines
No EOL
352 B
JavaScript
11 lines
No EOL
352 B
JavaScript
/* global dataTablesDefaults */
|
|
$(document).ready(function() {
|
|
$(".clickable").click(function() {
|
|
window.document.location = $(this).data('url');
|
|
});
|
|
var table = $("#table_borrowers").dataTable($.extend(true, {}, dataTablesDefaults, {
|
|
"aaSorting": [ 0, "asc" ],
|
|
"sDom": "t",
|
|
"iDisplayLength": -1
|
|
}));
|
|
}); |