diff --git a/resource/js/tab-alpha.js b/resource/js/tab-alpha.js index d4c70dee6..99fcb7923 100644 --- a/resource/js/tab-alpha.js +++ b/resource/js/tab-alpha.js @@ -10,15 +10,15 @@ const tabAlphaApp = Vue.createApp({ } }, mounted () { - // load alphabetical index if aplha tab is active when the page is first opened (otherwise only load the index when the tab is clicked) + // load alphabetical index if alphabetical tab is active when the page is first opened (otherwise only load the index when the tab is clicked) // this should probably be done differently - if (document.querySelector('#alpha > a').classList.contains('active')) { + if (document.querySelector('#alphabetical > a').classList.contains('active')) { this.loadLetters() } }, methods: { loadLetters () { - // only load index the first time the page is opened or the alpha tab is clicked + // only load index the first time the page is opened or the alphabetical tab is clicked if (this.indexLetters.length === 0) { fetch('rest/v1/' + SKOSMOS.vocab + '/index/?lang=' + SKOSMOS.lang) .then(data => { @@ -44,22 +44,22 @@ const tabAlphaApp = Vue.createApp({ } }, template: ` -
bbb
-ccc
-ddd
-