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

index 6469bda3fdd7010242b2cecc9575360c51ddad8c..66c3d67a1cdfac68b5266bb2becbd7b8765d4f6f 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="console.log($el.attributes.href.value); openPDF($el.attributes.href.value); closeSearch();"';
         }
 
         return `<a href="${URL}" class="${classes}" ${attributes}>${result.displayedTitle}</a>`;