mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-08 14:20:59 +00:00
Rev for 1.3.0 release
This commit is contained in:
parent
f756a441bf
commit
0ba374d7e3
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "devbridge-autocomplete",
|
||||
"version": "1.2.27",
|
||||
"version": "1.3.0",
|
||||
"homepage": "https://github.com/devbridge/jQuery-Autocomplete",
|
||||
"authors": [
|
||||
"Tomas Kirda"
|
||||
|
@ -6,7 +6,7 @@
|
||||
"ajax",
|
||||
"autocomplete"
|
||||
],
|
||||
"version": "1.2.27",
|
||||
"version": "1.3.0",
|
||||
"author": {
|
||||
"name": "Tomas Kirda",
|
||||
"url": "https://github.com/tkirda"
|
||||
|
15
dist/jquery.autocomplete.js
vendored
15
dist/jquery.autocomplete.js
vendored
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* Ajax Autocomplete for jQuery, version 1.2.27
|
||||
* (c) 2015 Tomas Kirda
|
||||
* Ajax Autocomplete for jQuery, version 1.3.0
|
||||
* (c) 2017 Tomas Kirda
|
||||
*
|
||||
* Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.
|
||||
* For details, see the web site: https://github.com/devbridge/jQuery-Autocomplete
|
||||
@ -67,6 +67,7 @@
|
||||
deferRequestBy: 0,
|
||||
params: {},
|
||||
formatResult: Autocomplete.formatResult,
|
||||
formatGroup: Autocomplete.formatGroup,
|
||||
delimiter: null,
|
||||
zIndex: 9999,
|
||||
type: 'GET',
|
||||
@ -143,6 +144,10 @@
|
||||
.replace(/<(\/?strong)>/g, '<$1>');
|
||||
};
|
||||
|
||||
Autocomplete.formatGroup = function (suggestion, category) {
|
||||
return '<div class="autocomplete-group"><strong>' + category + '</strong></div>';
|
||||
};
|
||||
|
||||
Autocomplete.prototype = {
|
||||
|
||||
killerFn: null,
|
||||
@ -671,7 +676,7 @@
|
||||
|
||||
category = currentCategory;
|
||||
|
||||
return '<div class="autocomplete-group"><strong>' + category + '</strong></div>';
|
||||
return options.formatGroup(suggestion, category);
|
||||
};
|
||||
|
||||
if (options.triggerSelectOnValidInput && that.isExactMatch(value)) {
|
||||
@ -742,6 +747,10 @@
|
||||
if (options.width === 'auto') {
|
||||
width = that.el.outerWidth();
|
||||
container.css('width', width > 0 ? width : 300);
|
||||
} else if(options.width === 'flex') {
|
||||
// Trust the source! Unset the width property so it will be the max length
|
||||
// the containing elements.
|
||||
container.css('width', '');
|
||||
}
|
||||
},
|
||||
|
||||
|
6
dist/jquery.autocomplete.min.js
vendored
6
dist/jquery.autocomplete.min.js
vendored
File diff suppressed because one or more lines are too long
@ -5,7 +5,7 @@ module.exports = function(grunt) {
|
||||
var banner = [
|
||||
'/**',
|
||||
'* Ajax Autocomplete for jQuery, version ' + pkg.version,
|
||||
'* (c) 2014 Tomas Kirda',
|
||||
'* (c) 2017 Tomas Kirda',
|
||||
'*',
|
||||
'* Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.',
|
||||
'* For details, see the web site: https://github.com/devbridge/jQuery-Autocomplete',
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "devbridge-autocomplete",
|
||||
"version": "1.2.27",
|
||||
"version": "1.3.0",
|
||||
"description": "Autocomplete provides suggestions while you type into the text field.",
|
||||
"homepage": "https://github.com/devbridge/jQuery-Autocomplete",
|
||||
"author": "Tomas Kirda (https://twitter.com/tkirda)",
|
||||
|
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* Ajax Autocomplete for jQuery, version %version%
|
||||
* (c) 2015 Tomas Kirda
|
||||
* (c) 2017 Tomas Kirda
|
||||
*
|
||||
* Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.
|
||||
* For details, see the web site: https://github.com/devbridge/jQuery-Autocomplete
|
||||
|
Loading…
Reference in New Issue
Block a user