2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-26 06:46:32 +00:00
Commit Graph

118 Commits

Author SHA1 Message Date
Tomas Kirda
9f329d0c49 Add ability to select suggestion if it matches typed value. Fixes #113. 2013-11-23 21:43:40 -06:00
Tomas Kirda
d38ec91e6b Rev for 1.2.8 release 2013-11-23 17:26:19 -06:00
Tomas Kirda
f2aef10a5b Merge branch 'develop'
Conflicts:
	readme.md
2013-11-23 17:16:27 -06:00
Jan-Christian Foeh
82eb09328f Add onSearchError callback for handling AJAX failures 2013-10-01 15:56:39 +02:00
Tomas Kirda
f7716b6551 Add beforeRender callback. Closes #84 2013-08-31 17:13:27 -05:00
Tomas Kirda
684bf9efd7 Adjust suggestions width when resizing window, if width is set to auto. Fixes #92 2013-08-31 16:53:23 -05:00
Tomas Kirda
8d0b422da0 Cancel current request when disabling autocomplete. Closes #107 2013-08-31 16:39:46 -05:00
Tomas Kirda
d1ee9c0cf2 Remove innerHTML usage. Fixes #93. 2013-08-31 16:21:16 -05:00
Tomas Kirda
1906d93ff9 Enable support for minChars: 0. Fixes #95. 2013-08-31 16:16:00 -05:00
Tomas Kirda
2f260cec63 Select hint only if onHint callback specified. 2013-07-19 08:36:20 +03:00
Boris Cosic
5dc41fb0d5 Abort ajax requests in progress. 2013-07-13 17:18:41 -06:00
Tomas Kirda
6a9c2caaf7 Exit if there is no value for hint. 2013-06-27 16:25:47 -05:00
Tomas Kirda
e3e27bb066 Implement selection invalidation. 2013-06-07 19:21:24 -05:00
Tomas Kirda
a2bea849fc Create TypeScript definition file. 2013-06-07 18:38:50 -05:00
Tomas Kirda
5a6eaca541 Track hintValue and signal hint only when hintValue changes. 2013-06-07 17:52:54 -05:00
Tomas Kirda
adfbf7a4e9 Rename keyCode to which for consistency. Select hint on TAB or RIGHT arrow if hinting listener is set. 2013-06-07 16:53:19 -05:00
Tomas Kirda
835a039ba9 Don't adjust position on resize if suggestions not visible. 2013-06-04 18:17:42 -05:00
Tomas Kirda
cc0e124567 Implement onHint callback to enable hinted suggestions. 2013-06-04 18:12:51 -05:00
Tomas Kirda
ee584149d6 Update suggestions position on window resize. 2013-06-04 18:08:06 -05:00
Tomas Kirda
074c44e08e Remove ignoreValue change. Update input value so that onValueChange will not be triggered. 2013-06-04 18:01:31 -05:00
Tomas Kirda
54f24bd098 Remove sniffing for Opera. 2013-05-06 15:35:03 -05:00
Tomas Kirda
7c2121a598 Preserve original width option. Adjust width of the suggestions container each time if width is set to 'auto'. 2013-04-26 14:49:41 -05:00
Tomas Kirda
997a4b92cc Rev for 1.2.7 release 2013-04-24 16:08:01 -05:00
Tomas Kirda
6e055c1a58 Merge branch 'develop' 2013-04-24 16:04:09 -05:00
Tomas Kirda
9f62319033 Rev for 1.2.6 release 2013-04-24 15:57:23 -05:00
Tomas Kirda
d48616adb5 Construct serviceUrl via callback function. Fixes #66. 2013-04-24 15:48:05 -05:00
Tomas Kirda
941c8ee4e3 Don't perform lookup if onSearchStart returns false. Fixes #60. 2013-04-24 15:04:50 -05:00
Tomas Kirda
41543d98a4 Return instance of Autocomplete for the first matched element if called without arguments. 2013-04-24 14:55:34 -05:00
Tomas Kirda
d3bdb0a61b Add dispose method. Remove unused code. Destroy existing instance when creating new instance. Fixes #55. 2013-04-24 14:07:03 -05:00
Gediminas Backevicius
19f0e6b6c5 Method 'clear' which is used to clear autocomplete's state was included. This method can be used when data source is changed. 2013-04-09 11:27:26 +03:00
Tomas Kirda
364fd6a1f0 Rev for 1.2.5 release 2013-03-27 14:01:24 -05:00
Tomas Kirda
7af8d62091 Make query value to be set by the plugin. Fixes #48 2013-02-21 17:07:33 -06:00
Tomas Kirda
a362ce1b06 Call transformResult on the value returned from the server. Fixes #49 2013-02-21 16:25:07 -06:00
Gediminas Backevicius
91df66d4da Parameters were passed to method 'onSearchStart'
We need to add extra parameter to search criteria
2013-02-18 16:40:20 +02:00
Tomas Kirda
0add15ec72 Rev for 1.2.4 release 2013-02-08 14:51:45 -06:00
Tomas Kirda
3264901000 Merge pull request #33 from ericsaboia/patch-1
Removing empty query validation on value change
2013-02-08 11:58:24 -08:00
Tomas Kirda
3757adddbd Merge pull request #36 from jesseditson/master
Added JSONP support (via new dataType option)
2013-02-08 11:56:03 -08:00
Nils-Helge Garli Hegvik
83108c1f14 Issue #40 - Only ignore value change when selection is made by pressing the enter key 2013-02-08 07:57:06 +01:00
Jesse Ditson
171744b665 support response being an object (after jquery default parsing) and passing jsonp as a dataType in addition to string type 2013-01-29 22:35:39 -10:00
Eric Saboia
b87a208066 Removing empty query validation on value change
Removing empty query validation on value change, so I can set 'minChars' to 0 and show suggestions when the user click on input.

Exemple:

var $autocomplete = new $.Autocomplete($('#wishlist_name')[0], {
	lookup: wishlist_types,
	minChars: 0,
});

$('#wishlist_name').focus(function(){
	$autocomplete.onValueChange();
});
2013-01-25 18:18:26 -02:00
Tomas Kirda
56195317c8 Version bump for plugins.jquery.com 2013-01-20 22:03:48 -06:00
Tomas Kirda
3023235768 Release v1.2.2 2013-01-20 19:28:48 -06:00
Tomas Kirda
e97ad17209 Implement appendTo option. 2013-01-20 15:17:04 -06:00
Tomas Kirda
074252a8cb Deselect active element when mouse leaves suggestions container. Fixes #26 2013-01-20 14:38:55 -06:00
Tomas Kirda
56437a2ec5 Add autoSelectFirst option. 2013-01-20 14:26:30 -06:00
Nils-Helge Garli Hegvik
b92ac02ba7 Added support for custom query and search result format 2013-01-16 12:21:42 +01:00
Tomas Kirda
ffa963663a Merge branch 'master' of github.com:devbridge/jQuery-Autocomplete
Conflicts:
	src/jquery.autocomplete.js
2013-01-15 12:37:42 -06:00
Tomas Kirda
32857e7132 Add lookupFilter function that can customized. 2013-01-15 11:53:05 -06:00
Tomas Kirda
d7102f4001 Map this to that to achieve better compression. 2013-01-15 11:50:00 -06:00
Tomas Kirda
21760cee19 Use single var per function 2013-01-15 11:17:47 -06:00
Tomas Kirda
3b3eb37dce Expose plugin as an AMD module if AMD loader is present 2013-01-15 11:05:09 -06:00
Joshua Isaac
2c26b6c7e2 add an option to disable going to the next field when tabbing to select a suggestion 2013-01-04 16:58:49 -08:00
Tomas Kirda
93c147e4c0 Add containerClass to options. 2013-01-02 10:48:14 -06:00
Tomas Kirda
57a245eede Map keyboard keys on keys object. 2012-12-22 18:47:07 -06:00
Tomas Kirda
8312b03dbe Fix white space. 2012-12-21 18:10:28 -06:00
Tomas Kirda
368cfb3c56 Add onSearchStart and onSearchComplete tests. Update documentation. 2012-12-19 15:53:34 -06:00
Tomas Kirda
77daff2905 Update styles and suggestions markup. 2012-12-19 14:44:48 -06:00
Tomas Kirda
a53b1cd759 Update default options 2012-12-19 12:16:25 -06:00
Tomas Kirda
459719fc02 Make plugin chainable, change suggestion event handling to improve performance, change suggestions format, update readme, add Jasmine test suites, add license. 2012-12-18 16:07:02 -06:00
Tomas Kirda
930393c7f7 Use outerHeight instead of innerHeight 2012-11-10 21:43:42 -06:00
Tomas Kirda
948ce9cdb7 Fix issue with keyPress context 2012-11-10 12:43:25 -06:00
Tomas Kirda
adfae28573 Minor formating changes 2012-11-08 16:07:53 -06:00
Tomas Kirda
dec9dc298e Update spacing and code style 2012-11-08 15:36:50 -06:00
Tomas Kirda
b4de69f24f Fix spacing and jslint code 2012-11-08 15:17:10 -06:00
Tomas Kirda
47bac4a243 Reapply Vytautas commit with correct spacing. 2012-11-08 15:01:08 -06:00
Tomas Kirda
3d27c27846 Revert "Revert Vytautas commit to restore original spacing"
This reverts commit 57f88e5a64.
2012-11-08 14:50:03 -06:00
Tomas Kirda
57f88e5a64 Revert Vytautas commit to restore original spacing 2012-11-08 14:41:07 -06:00
Tomas Kirda
5e8b404fc0 Initial commit 2010-05-26 17:24:23 -05:00