word/finder: fix debug id references
[sheet.git] / word / finder.js
index 630db8e8f8ff21af26f979f17742658e32f91988..9d2b6cf321ba4f3534ac31857df856b5d31a21ce 100644 (file)
@@ -29,10 +29,13 @@ class WordFinder extends WordQuiz {
                        if (word.subs.length) {
                                // delve into subcategory
                                put(worditem, '.parent');
-                               this.add(put(worditem, 'ul'), word.subs);
+                               const expansion = put(worditem, 'ul');
+                               //expansion.style.display = 'none';
+                               this.add(expansion, word.subs);
+                               //worditem.onclick = () => expansion.style.display = '';
                        }
                        if (this.preset.debug) {
-                               put(figitem, '[title=$]', `id ${ref} level ${word.level}`);
+                               put(figitem, '[title=$]', `id ${word.id} level ${word.level}`);
                        }
                });
        }