From 789e37a1e6bca03688b8564d0036472b2d76d923 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 2 Dec 2024 12:48:08 +0100 Subject: [PATCH] Bug 38596: (bug 36640 follow-up): Restore previous order sequence behaviour - OPAC See commit e76c5c0145f1575254603ba507fbea339cfb4e82 Bug 36640: Restore previous order sequence behaviour Test plan: Go to http://localhost:8080/cgi-bin/koha/opac-detail.pl?biblionumber=1 Click on the header to modify the order, click again, then again. It should always be asc or desc, and you should see the corresponding arrows. Signed-off-by: David Nind --- koha-tmpl/opac-tmpl/bootstrap/js/datatables.js | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/datatables.js b/koha-tmpl/opac-tmpl/bootstrap/js/datatables.js index ec44f993a5..58a7d228ac 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/js/datatables.js +++ b/koha-tmpl/opac-tmpl/bootstrap/js/datatables.js @@ -54,6 +54,7 @@ var dataTablesDefaults = { }); } }; +DataTable.defaults.column.orderSequence = ['asc', 'desc']; $.fn.dataTable.ext.buttons.clearFilter = { fade: 100, -- 2.39.5