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 { getWordsStats, wordExists } from './utilities';
|
||||||
import { getMatchingSearchWords, highlightSearchTerm, getSearchFilters, getSearchTerm } from './search';
|
import { getMatchingSearchWords, highlightSearchTerm, getSearchFilters, getSearchTerm } from './search';
|
||||||
import { showSection } from './displayToggles';
|
import { showSection } from './displayToggles';
|
||||||
import { setupSearchFilters, setupWordOptionButtons, setupPagination, setupWordOptionSelections, setupEditFormButtons } from './setupListeners';
|
import { setupSearchFilters, setupWordOptionButtons, setupPagination, setupWordOptionSelections, setupWordEditFormButtons } from './setupListeners';
|
||||||
import { getPaginationData } from './pagination';
|
import { getPaginationData } from './pagination';
|
||||||
|
|
||||||
export function renderAll() {
|
export function renderAll() {
|
||||||
|
@ -214,6 +214,6 @@ export function renderEditForm() {
|
||||||
</form>`;
|
</form>`;
|
||||||
|
|
||||||
document.getElementById(wordId.toString()).innerHTML = editForm;
|
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 saveChangesButtons = document.getElementsByClassName('edit-save-changes');
|
||||||
const cancelChangesButtons = document.getElementsByClassName('edit-cancel');
|
const cancelChangesButtons = document.getElementsByClassName('edit-cancel');
|
||||||
Array.from(saveChangesButtons).forEach(button => {
|
Array.from(saveChangesButtons).forEach(button => {
|
||||||
|
|
Loading…
Reference in New Issue