Bug 20831: Fix KohaTable calls after bug 9573
authorJosef Moravec <josef.moravec@gmail.com>
Tue, 29 May 2018 08:49:19 +0000 (08:49 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 4 Jun 2018 13:58:04 +0000 (13:58 +0000)
Test plan:
0) Do not apply the patch
1) Confirm not working datatable on patrons hold history page
2) Apply the patch
3) The table should be working now

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt

index 68f3a2b..f2e8ebb 100644 (file)
     <script type="text/javascript" id="js">
         $(document).ready(function() {
             var columns_settings = [% ColumnsSettings.GetColumns('members', 'holdshistory', 'holdshistory-table', 'json') %];
-            var table = KohaTable("#table_holdshistory", {
+            var table = KohaTable("table_holdshistory", {
                 "sPaginationType": "four_button",
                 "aaSorting": [[4, 'desc']],
                 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',