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

index 74788ba40723f3107c32cee9d126bf536dbd755f..87e1ef24d61924c773ca8851687e0d1c6f4a672a 100644 (file)
@@ -14,3 +14,9 @@ Alpine.data('media_library', media_library);
 Alpine.data('search', search);
 
 Alpine.start();
+
+setInterval(function () {
+    Alpine.discoverUninitializedComponents(function (el) {
+        Alpine.initializeComponent(el)
+    })
+}, 1000);
index 59735b51c14f73b5c5853f9c793d364e6715bb0e..209c33859588d28023aba721f33f9de431bc5271 100644 (file)
@@ -53,11 +53,6 @@ export default () => ({
         }
 
         var res = this.miniSearch.search(this.query);
-        setTimeout(function () {
-            Alpine.discoverUninitializedComponents(function (el) {
-                Alpine.initializeComponent(el)
-            })
-        }, 1000);
         return res;
     },