]> _ Git - odl.git/commitdiff
wip #5181 @0.5
authorvincent <vincent@enhydra.fr>
Sat, 26 Mar 2022 12:57:52 +0000 (13:57 +0100)
committervincent <vincent@enhydra.fr>
Sat, 26 Mar 2022 12:57:52 +0000 (13:57 +0100)
resources/js/search.js

index 520c4669c46d3188ec018a467406f255305dc2e2..35382b3e7816e4de2c8480c3a2fb00e752eca36e 100644 (file)
@@ -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 `<a href="${URL}" class="${classes}" ${attributes}>${result.displayedTitle}</a>`;