Koha/koha-tmpl/intranet-tmpl/prog/js/circ-patron-search-results.js
Josef Moravec 2b52e54b20 Bug 22330: (QA follow-up) Enable datatable in patron search
Test plan:
Try to search patron for circulation (or for creating hold), when there
are more than 1 patron, you should see a table with patrons found.
--> without this patch, the datatable is not created (for example
        sorting the table by clicking to column heading does not work)
--> with this patch, the datatable works

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-03-21 16:22:56 +00:00

13 lines
382 B
JavaScript

/* global dataTablesDefaults */
$(document).ready(function() {
$(".clickable").click(function() {
window.document.location = $(this).data('url');
});
var table = KohaTable("table_borrowers",
{
"aaSorting": [ 0, "asc" ],
"sDom": "t",
"iDisplayLength": -1
},
columns_settings_borrowers_table, null);
});