Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 30, 2024
1 parent 803fcdd commit 9c998e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions openlibrary/plugins/openlibrary/js/editions-table/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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],
Expand All @@ -79,4 +79,4 @@ export function initEditionsTable() {

// Initial pagination visibility toggle
togglePaginationVisibility(currentLength);
}
}

0 comments on commit 9c998e6

Please sign in to comment.