From: vincent Date: Sat, 26 Mar 2022 12:57:52 +0000 (+0100) Subject: wip #5181 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=2631ef0d01142c0e0abfd1a96b7ee1ea3c931802;p=odl.git wip #5181 @0.5 --- diff --git a/resources/js/search.js b/resources/js/search.js index 520c466..35382b3 100644 --- a/resources/js/search.js +++ b/resources/js/search.js @@ -41,7 +41,7 @@ export default () => ({ // PDFs can be opened directly if (result.type === 'pdf') { - attributes = '@click.prevent="openPDF($el.attributes.href.value); closeSearch();"'; + attributes = '@click.prevent="app().openPDF($el.attributes.href.value); app().closeSearch();"'; } return `${result.displayedTitle}`;