Fix function name (setupEditFormButtons -> setupWordEditFormButtons)
This commit is contained in:
parent
72041ecafb
commit
c5c17d022e
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue