mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-06-29 12:10:31 +00:00
search: remove jQuery #452
This commit is contained in:
parent
7c6a48f6c6
commit
a95d86c03c
4 changed files with 77 additions and 47 deletions
static/js
|
@ -8,6 +8,9 @@
|
|||
- don't empty search input if no data-val is given
|
||||
- don't delete search term but close suggestions when suggestions are open
|
||||
- delete search term when suggestions are closed
|
||||
McShelby/hugo-theme-relearn#452
|
||||
- register focus event ignoring minChars because that doesn't make sense
|
||||
|
||||
Copyright (c) 2014 Simon Steinberger / Pixabay
|
||||
GitHub: https://github.com/Pixabay/JavaScript-autoComplete
|
||||
License: http://www.opensource.org/licenses/mit-license.php
|
||||
|
@ -240,7 +243,7 @@ var autoComplete = (function(){
|
|||
that.last_val = '\n';
|
||||
that.keyupHandler(e)
|
||||
};
|
||||
if (!o.minChars) addEvent(that, 'focus', that.focusHandler);
|
||||
addEvent(that, 'focus', that.focusHandler);
|
||||
}
|
||||
|
||||
// public destroy method
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue