From 62504a5d6b6b12f66be28ffdced085b3ece118d6 Mon Sep 17 00:00:00 2001 From: Drini Cami Date: Tue, 10 Sep 2024 19:46:23 +0200 Subject: [PATCH] Convert random shuffle link to a button --- openlibrary/templates/search/sort_options.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/openlibrary/templates/search/sort_options.html b/openlibrary/templates/search/sort_options.html index 51313de0f5b..10e0f0017e5 100644 --- a/openlibrary/templates/search/sort_options.html +++ b/openlibrary/templates/search/sort_options.html @@ -64,8 +64,9 @@ $if not loop.last: | $if selected_sort and selected_sort.startswith('random') and not is_bot(): - ($_('Shuffle')) + onclick="window.location = $dumps(changequery(page=None, sort='random_%s' % today().timestamp()));" + >$_('Shuffle'))