diff --git a/openlibrary/plugins/openlibrary/js/editions-table/index.js b/openlibrary/plugins/openlibrary/js/editions-table/index.js index 8193c7f3e03..cb993011257 100755 --- a/openlibrary/plugins/openlibrary/js/editions-table/index.js +++ b/openlibrary/plugins/openlibrary/js/editions-table/index.js @@ -5,7 +5,7 @@ const DEFAULT_LENGTH = 3; const LS_RESULTS_LENGTH_KEY = 'editions-table.resultsLength'; export function initEditionsTable() { - + $('#editions th.title').on('mouseover', function(){ if ($(this).hasClass('sorting_asc')) { $(this).attr('title','Sort latest to earliest'); @@ -51,8 +51,8 @@ export function initEditionsTable() { } }) - var rowCount = $('#editions tbody tr').length; - let currentLength = Number(localStorage.getItem(LS_RESULTS_LENGTH_KEY)) || DEFAULT_LENGTH; + var rowCount = $('#editions tbody tr').length; + const currentLength = Number(localStorage.getItem(LS_RESULTS_LENGTH_KEY)) || DEFAULT_LENGTH; $('#editions').DataTable({ aoColumns: [{ sType: 'html' }, null], @@ -79,4 +79,4 @@ export function initEditionsTable() { // Initial pagination visibility toggle togglePaginationVisibility(currentLength); -} \ No newline at end of file +}