mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-22 04:45:12 +00:00
Rev for 1.4.8 release
This commit is contained in:
parent
f6eef033a4
commit
174df1c93a
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "devbridge-autocomplete",
|
"name": "devbridge-autocomplete",
|
||||||
"version": "1.4.7",
|
"version": "1.4.8",
|
||||||
"homepage": "https://github.com/devbridge/jQuery-Autocomplete",
|
"homepage": "https://github.com/devbridge/jQuery-Autocomplete",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Tomas Kirda"
|
"Tomas Kirda"
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"ajax",
|
"ajax",
|
||||||
"autocomplete"
|
"autocomplete"
|
||||||
],
|
],
|
||||||
"version": "1.4.7",
|
"version": "1.4.8",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Tomas Kirda",
|
"name": "Tomas Kirda",
|
||||||
"url": "https://github.com/tkirda"
|
"url": "https://github.com/tkirda"
|
||||||
|
10
dist/jquery.autocomplete.js
vendored
10
dist/jquery.autocomplete.js
vendored
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Ajax Autocomplete for jQuery, version 1.4.7
|
* Ajax Autocomplete for jQuery, version 1.4.8
|
||||||
* (c) 2017 Tomas Kirda
|
* (c) 2017 Tomas Kirda
|
||||||
*
|
*
|
||||||
* Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.
|
* Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.
|
||||||
@ -70,7 +70,7 @@
|
|||||||
that.isLocal = false;
|
that.isLocal = false;
|
||||||
that.suggestionsContainer = null;
|
that.suggestionsContainer = null;
|
||||||
that.noSuggestionsContainer = null;
|
that.noSuggestionsContainer = null;
|
||||||
that.options = $.extend({}, Autocomplete.defaults, options);
|
that.options = $.extend(true, {}, Autocomplete.defaults, options);
|
||||||
that.classes = {
|
that.classes = {
|
||||||
selected: 'autocomplete-selected',
|
selected: 'autocomplete-selected',
|
||||||
suggestion: 'autocomplete-suggestion'
|
suggestion: 'autocomplete-suggestion'
|
||||||
@ -164,7 +164,11 @@
|
|||||||
container;
|
container;
|
||||||
|
|
||||||
// Remove autocomplete attribute to prevent native suggestions:
|
// Remove autocomplete attribute to prevent native suggestions:
|
||||||
that.element.setAttribute('autocomplete', 'off');
|
// as per
|
||||||
|
// https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion
|
||||||
|
// some browsers e.g. Google Chrome ignore autocomplete=off but autocomplete=nope
|
||||||
|
// will provide the correct behaviour
|
||||||
|
that.element.setAttribute('autocomplete', 'nope');
|
||||||
|
|
||||||
// html() deals with many types: htmlString or Element or Array or jQuery
|
// html() deals with many types: htmlString or Element or Array or jQuery
|
||||||
that.noSuggestionsContainer = $('<div class="autocomplete-no-suggestion"></div>')
|
that.noSuggestionsContainer = $('<div class="autocomplete-no-suggestion"></div>')
|
||||||
|
4
dist/jquery.autocomplete.min.js
vendored
4
dist/jquery.autocomplete.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "devbridge-autocomplete",
|
"name": "devbridge-autocomplete",
|
||||||
"version": "1.4.7",
|
"version": "1.4.8",
|
||||||
"description": "Autocomplete provides suggestions while you type into the text field.",
|
"description": "Autocomplete provides suggestions while you type into the text field.",
|
||||||
"homepage": "https://github.com/devbridge/jQuery-Autocomplete",
|
"homepage": "https://github.com/devbridge/jQuery-Autocomplete",
|
||||||
"author": "Tomas Kirda (https://twitter.com/tkirda)",
|
"author": "Tomas Kirda (https://twitter.com/tkirda)",
|
||||||
|
Loading…
Reference in New Issue
Block a user