Created
March 26, 2021 17:47
-
-
Save ciencia/18a310e7682dec81454cff331cef8fdf to your computer and use it in GitHub Desktop.
patch MediaWiki core General suggestions delay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/resources/src/mediawiki.searchSuggest/searchSuggest.js b/resources/src/mediawiki.searchSuggest/searchSuggest.js | |
index c5357305d5..42ad14a744 100644 | |
--- a/resources/src/mediawiki.searchSuggest/searchSuggest.js | |
+++ b/resources/src/mediawiki.searchSuggest/searchSuggest.js | |
@@ -318,7 +318,8 @@ | |
after: onAfterUpdate | |
}, | |
cache: true, | |
- highlightInput: true | |
+ highlightInput: true, | |
+ delay: 550 | |
} ) | |
.on( 'paste cut drop', function () { | |
// make sure paste and cut events from the mouse and drag&drop events |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment