diff --git a/TODO.rst b/TODO.rst index b3917a07..27002121 100644 --- a/TODO.rst +++ b/TODO.rst @@ -1,7 +1,8 @@ TODO ==== -- Live search. +- Main menu display children. +- Custom root node in example. - Referencebrowser widget. - Treibstoff styles. - Yafowil bootstrap 5 styles. diff --git a/examples/cone.example/src/cone/example/model.py b/examples/cone.example/src/cone/example/model.py index 34e6408e..6b8ec56d 100644 --- a/examples/cone.example/src/cone/example/model.py +++ b/examples/cone.example/src/cone/example/model.py @@ -232,6 +232,7 @@ def search(self, request, query): result.append({ 'value': md.title, 'target': make_url(request, node=child), - 'icon': md.icon + 'icon': md.icon, + 'description': md.description, }) return result diff --git a/js/src/livesearch.js b/js/src/livesearch.js index e9af2164..8ed226e1 100644 --- a/js/src/livesearch.js +++ b/js/src/livesearch.js @@ -17,10 +17,8 @@ export class LiveSearch { constructor(elem) { this.elem = elem; this.target = `${elem.data('search-target')}/livesearch`; - this.result = $('