mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-25 06:07:45 +00:00
Rev for 1.2.17 release
This commit is contained in:
parent
8e6812d603
commit
06fe840666
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "devbridge-autocomplete",
|
||||
"version": "1.2.16",
|
||||
"version": "1.2.17",
|
||||
"homepage": "https://github.com/devbridge/jQuery-Autocomplete",
|
||||
"authors": [
|
||||
"Tomas Kirda"
|
||||
|
@ -6,7 +6,7 @@
|
||||
"ajax",
|
||||
"autocomplete"
|
||||
],
|
||||
"version": "1.2.16",
|
||||
"version": "1.2.17",
|
||||
"author": {
|
||||
"name": "Tomas Kirda",
|
||||
"url": "https://github.com/tkirda"
|
||||
|
22
dist/jquery.autocomplete.js
vendored
22
dist/jquery.autocomplete.js
vendored
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* Ajax Autocomplete for jQuery, version 1.2.16
|
||||
* (c) 2014 Tomas Kirda
|
||||
* Ajax Autocomplete for jQuery, version 1.2.17
|
||||
* (c) 2015 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
|
||||
@ -612,7 +612,13 @@
|
||||
},
|
||||
|
||||
hide: function () {
|
||||
var that = this;
|
||||
var that = this,
|
||||
container = $(that.suggestionsContainer);
|
||||
|
||||
if ($.isFunction(that.options.onHide) && that.visible) {
|
||||
that.options.onHide.call(that.element, container);
|
||||
}
|
||||
|
||||
that.visible = false;
|
||||
that.selectedIndex = -1;
|
||||
clearInterval(that.onChangeInterval);
|
||||
@ -622,11 +628,11 @@
|
||||
|
||||
suggest: function () {
|
||||
if (this.suggestions.length === 0) {
|
||||
if (this.options.showNoSuggestionNotice) {
|
||||
this.noSuggestions();
|
||||
} else {
|
||||
this.hide();
|
||||
}
|
||||
if (this.options.showNoSuggestionNotice) {
|
||||
this.noSuggestions();
|
||||
} else {
|
||||
this.hide();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
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
@ -32,7 +32,7 @@ module.exports = function(grunt) {
|
||||
grunt.registerTask('default', ['uglify']);
|
||||
|
||||
grunt.task.registerTask('build', 'Create release', function() {
|
||||
var version = pkg.version
|
||||
var version = pkg.version,
|
||||
src = grunt.file.read('src/jquery.autocomplete.js').replace('%version%', version),
|
||||
filePath = 'dist/jquery.autocomplete.js';
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "devbridge-autocomplete",
|
||||
"version": "1.2.16",
|
||||
"version": "1.2.17",
|
||||
"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)",
|
||||
|
Loading…
Reference in New Issue
Block a user