diff --git a/src/js/render/words.js b/src/js/render/words.js
index f8ccd27..e8e0d56 100644
--- a/src/js/render/words.js
+++ b/src/js/render/words.js
@@ -4,11 +4,11 @@ import { getHomonymnNumber, hasToken } from '../utilities';
import { getMatchingSearchWords, highlightSearchTerm, getSearchFilters, getSearchTerm } from '../search';
import {
setupWordOptionButtons,
- setupPagination,
+ // setupPagination,
setupWordOptionSelections,
setupWordEditFormButtons,
} from '../setupListeners/words';
-import { getPaginationData } from '../pagination';
+// import { getPaginationData } from '../pagination';
import { getOpenEditForms, translateOrthography, parseReferences, getWordReferenceMarkdown } from '../wordManagement';
import { renderAd } from '../ads';
import { getPublicLink } from '../account/utilities';
@@ -136,25 +136,25 @@ export function renderWords() {
// renderPagination(words);
}
-export function renderPagination(filteredWords) {
- const paginationData = getPaginationData(filteredWords);
+// export function renderPagination(filteredWords) {
+// const paginationData = getPaginationData(filteredWords);
- if (paginationData.pages > 0) {
- let paginationHTML = (paginationData.currentPage > 0 ? '« Previous' : '')
- + ''
- + (paginationData.currentPage < paginationData.pages - 1 ? 'Next »' : '');
+// if (paginationData.pages > 0) {
+// let paginationHTML = (paginationData.currentPage > 0 ? '« Previous' : '')
+// + ''
+// + (paginationData.currentPage < paginationData.pages - 1 ? 'Next »' : '');
- Array.from(document.getElementsByClassName('pagination')).forEach(pagination => {
- pagination.innerHTML = paginationHTML;
- });
+// Array.from(document.getElementsByClassName('pagination')).forEach(pagination => {
+// pagination.innerHTML = paginationHTML;
+// });
- setupPagination();
- }
-}
+// setupPagination();
+// }
+// }
export function renderEditForm(wordId = false) {
wordId = typeof wordId.target === 'undefined' ? wordId : parseInt(this.id.replace('edit_', ''));
diff --git a/src/js/setupListeners/words.js b/src/js/setupListeners/words.js
index bd2d06e..69757f6 100644
--- a/src/js/setupListeners/words.js
+++ b/src/js/setupListeners/words.js
@@ -1,6 +1,6 @@
import { renderEditForm } from '../render/words';
import { confirmEditWord, cancelEditWord, confirmDeleteWord, expandAdvancedForm, submitWordForm } from '../wordManagement';
-import { goToNextPage, goToPreviousPage, goToPage } from '../pagination';
+// import { goToNextPage, goToPreviousPage, goToPage } from '../pagination';
import { setupMaximizeButtons } from './buttons';
import { setupIPAFields } from '.';
@@ -98,22 +98,22 @@ export function setupMobileWordFormButton() {
});
}
-export function setupPagination() {
- const nextButtons = document.getElementsByClassName('next-button'),
- prevButtons = document.getElementsByClassName('prev-button'),
- pageSelectors = document.getElementsByClassName('page-selector');
+// export function setupPagination() {
+// const nextButtons = document.getElementsByClassName('next-button'),
+// prevButtons = document.getElementsByClassName('prev-button'),
+// pageSelectors = document.getElementsByClassName('page-selector');
- Array.from(nextButtons).forEach(nextButton => {
- nextButton.removeEventListener('click', goToNextPage);
- nextButton.addEventListener('click', goToNextPage);
- });
- Array.from(prevButtons).forEach(prevButton => {
- prevButton.removeEventListener('click', goToPreviousPage);
- prevButton.addEventListener('click', goToPreviousPage);
- });
+// Array.from(nextButtons).forEach(nextButton => {
+// nextButton.removeEventListener('click', goToNextPage);
+// nextButton.addEventListener('click', goToNextPage);
+// });
+// Array.from(prevButtons).forEach(prevButton => {
+// prevButton.removeEventListener('click', goToPreviousPage);
+// prevButton.addEventListener('click', goToPreviousPage);
+// });
- Array.from(pageSelectors).forEach(pageSelector => {
- pageSelector.removeEventListener('change', goToPage);
- pageSelector.addEventListener('change', goToPage);
- });
-}
\ No newline at end of file
+// Array.from(pageSelectors).forEach(pageSelector => {
+// pageSelector.removeEventListener('change', goToPage);
+// pageSelector.addEventListener('change', goToPage);
+// });
+// }
\ No newline at end of file