Skip to content

Commit 112a57c

Browse files
Daniel BerthereauDaniel Berthereau
authored andcommitted
Fixed slow click for autocomplete (fix devbridge/jQuery-Autocomplete#811).
1 parent 8d91c12 commit 112a57c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

composer.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,15 @@
5757
"psr-4": {
5858
"AdvancedSearchTest\\": "test/AdvancedSearchTest/"
5959
}
60+
},
61+
"scripts": {
62+
"post-install-cmd": [
63+
"# Fix https://github.com/devbridge/jQuery-Autocomplete/pull/811",
64+
"@php -r '$f = __DIR__ . \"/asset/vendor/jquery-autocomplete/jquery.autocomplete.min.js\"; file_put_contents($f, str_replace(\",200)\", \",350)\", file_get_contents($f)));'"
65+
],
66+
"post-update-cmd": [
67+
"# Fix https://github.com/devbridge/jQuery-Autocomplete/pull/811",
68+
"@php -r '$f = __DIR__ . \"/asset/vendor/jquery-autocomplete/jquery.autocomplete.min.js\"; file_put_contents($f, str_replace(\",200)\", \",350)\", file_get_contents($f)));'"
69+
]
6070
}
6171
}

0 commit comments

Comments
 (0)