Fix function name (setupEditFormButtons -> setupWordEditFormButtons)

This commit is contained in:
Robbie Antenesse 2019-05-07 10:22:32 -06:00
parent 72041ecafb
commit c5c17d022e
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ import { removeTags, slugify } from '../helpers';
import { getWordsStats, wordExists } from './utilities';
import { getMatchingSearchWords, highlightSearchTerm, getSearchFilters, getSearchTerm } from './search';
import { showSection } from './displayToggles';
import { setupSearchFilters, setupWordOptionButtons, setupPagination, setupWordOptionSelections, setupEditFormButtons } from './setupListeners';
import { setupSearchFilters, setupWordOptionButtons, setupPagination, setupWordOptionSelections, setupWordEditFormButtons } from './setupListeners';
import { getPaginationData } from './pagination';
export function renderAll() {
@ -214,6 +214,6 @@ export function renderEditForm() {
</form>`;
document.getElementById(wordId.toString()).innerHTML = editForm;
setupEditFormButtons();
setupWordEditFormButtons();
}
}

View File

@ -173,7 +173,7 @@ export function setupWordOptionSelections() {
});
}
export function setupEditFormButtons() {
export function setupWordEditFormButtons() {
const saveChangesButtons = document.getElementsByClassName('edit-save-changes');
const cancelChangesButtons = document.getElementsByClassName('edit-cancel');
Array.from(saveChangesButtons).forEach(button => {