jzaefferer
dea2f8a7fc
Autocomplete: Store term when selecting an item to prevent another search triggered before blur. Fixes #5591 - Home and End keys trigger search
2010-08-31 14:20:56 +02:00
Scott González
da2be6a2af
Autocomplete: Abort existing ajax requests when running new searches.
2010-08-24 21:41:34 -04:00
Scott González
f115b48d2b
Autocomplete: Don't handle remote data if it's not the most recent request. Fixes #5982 - Autocomplete: Race condition causes incorrect suggestions.
2010-08-24 09:14:44 -04:00
Robson Braga Araujo
3af1f6c1ce
Autocomplete: changed menu activated function to check if the offset is greater than or equal the height. Fixed #5923 - autocomplete: Scrolling with the keyboard sometimes does not show the item (Chrome)
2010-08-11 08:21:09 +08:00
Robson Braga Araujo
9a4eecdf85
Autocomplete: changed the search function to always store the last term that was entered by the user. Fixed #5922 - autocomplete: Search not triggered if the first letter is the same as the first letter of a previous erased content
2010-08-11 08:21:08 +08:00
Scott González
de266a1275
Autocomplete: Handle clicks outside the autocomplete after scrolling the results (which causes the body to gain focus). Fixes #5903 - Autocomplete doesn't close after scrolling.
2010-08-05 08:51:54 -04:00
Scott González
ed07f0a056
Autocomplete: Don't reset text field value on blur unless it will actually change the value. Fixes #5900 - Autocomplete: mousing over menu option replaces text box contents, moves caret.
2010-08-04 13:26:42 -04:00
Scott González
90caa93a9b
Autocomplete: Respect the disabled option. Fixes #5619 - Autocomplete widget keeps looking for remote data even when it's disabled.
2010-07-30 12:59:33 -04:00
Scott González
58ae7ce2fd
Revert "Use pushStack in widget method. Fixes #5732 - make the widget method maintain the stack"
...
This reverts commit ea58cd5ac0
.
2010-07-30 12:38:18 -04:00
jzaefferer
ea58cd5ac0
Use pushStack in widget method. Fixes #5732 - make the widget method maintain the stack
2010-07-30 14:26:58 +02:00
Scott González
4deb824699
Core: Added .outerWidth(), .outerHeight(), .innerWidth(), .innerHeight(). Fixes #5850 - .outerWidth(), .outerHeight(), .innerWidth(), .innerHeight() setters.
2010-07-21 22:17:52 -04:00
Scott González
4c55071976
Autocomplete: Fixed bad reference to ownerDocument.
2010-07-21 14:56:15 -04:00
Scott González
74e0d4f473
Autocomplete: Added appendTo option. Fixes #5836 - Autocomplete: add appendTo option.
2010-07-21 14:54:20 -04:00
Scott González
e85615fc6b
Autocomplete: Prevent the default behavior of pressing enter when the menu is open, even if no item is active. Partial fix for #5757 - Autocomplete combobox issues.
2010-07-20 15:13:54 -04:00
Scott González
c2c09e8953
Autocomplete: Clear selectedItem property whenever the user types something. Also updated combobox to clear the select element when clearing the text element. Fixes #5453 - Autocomplete: combobox demo doesn't remove invalid values.
2010-07-20 13:24:53 -04:00
Scott González
e4273ff621
Autocomplet: refactored handling of menu's selected event.
2010-07-20 12:10:58 -04:00
Scott González
2ed96cb0b8
Autocompelte: Only run a search if the value has changed; switching from a blacklist of keys to ignore. Fixes #5716 - autocomplete triggered when field copied with ctrl-c.
2010-07-20 11:48:53 -04:00
Scott González
1f2cfb942f
Autocomplete: Render items as text, not HTML. Fixes #5275 - suggestions are not html-encoded.
...
As noted in the ticket, it's probably better to default to unstyled items to prevent problems. Users can still implement their own rendering method as shown in the custom data and display demo.
2010-07-19 15:45:30 -04:00
Scott González
53489b502d
Autocomplete: Don't update the value of the text field until after setting focus. Fixes #5639 - Cursor jumps to beginning on select.
2010-07-19 14:36:40 -04:00
Scott González
5311fe22f3
Menu: Only look for .ui-menu-item elements to determine if a menu item is the first or last element in the menu. Fixes #5528 - Autocomplete: Issue when try to navigate using up key by keyboard in IE6.
2010-07-19 11:51:05 -04:00
Scott González
612838a151
Autocomplete: Added position option. Fixes #5153 - Autocomplete position option.
2010-07-19 09:28:04 -04:00
Scott González
325a262b14
Autocomplete: Use .outerWidth() for determining the size of the menu. Fixes #5832 - Autocomplete: menu has incorrect width.
2010-07-16 14:12:06 -04:00
Scott González
8a5d4ca321
All: Added http://jqueryui.com/about to header comments.
2010-07-14 15:45:45 -04:00
Scott González
21aad10e6a
All: Define a local undefined variable inside the main closure.
2010-07-13 09:57:58 -04:00
Scott González
536ae6189b
Updated copyright headers to make it clear that you can choose between MIT and GPLv2. Also added a link to http://jquery.org/license .
2010-07-09 09:01:04 -04:00
jzaefferer
0bbbe5f5b1
Autocomplete: Updated escapeRegex utility based on http://xregexp.com/xregexp.js
2010-07-05 10:06:16 +02:00
jzaefferer
fc093e9feb
Prevent autocomplete-menu from closing when clicking 'slowly', eg. a long mousedown. Fix for #5405 - Autocomplete: select event not triggered when mousedown duration > blur timeout
2010-05-18 14:57:02 +02:00
Scott González
cb7eb69973
Autocomplete: Ignore command (left and right/menu/windows), insert, caps lock, home, end keys.
...
Fixes #5415 - Catch all common keys while typing a word.
2010-04-23 13:00:54 -04:00
jzaefferer
dbc9addfae
Autocomplete: Refactored code for array filtering into $.ui.autocomplete.filter, used by remote-with-cache and modified multiple-demo (now with local data); added multiple-remote to also show multiple with remote data
2010-04-16 11:05:35 +02:00
jzaefferer
c01b3baef9
Autocomplete: Track input changes and fire change-event on blur, along with selected item, if available. Fix for #5490
2010-04-08 12:05:52 +02:00
jzaefferer
6d9caf1e23
Autocomplete: Only remove classes actually added by the widget, ui-widget etc. aren't added, so don't remove them
2010-03-26 12:42:03 -04:00
jzaefferer
40e3637117
Added $.ui.keyCode.ALT to complete list of metakeys, used in autocomplete
2010-03-26 12:40:46 -04:00
Scott González
f2873b6ebf
Menu: Ignore clicks that don't occur on the anchor tag within a valid menu item.
...
Fixes #5376 - Menu plugin fires select when border is clicked.
2010-03-24 07:15:30 -07:00
Scott González
1ddd4f5d3f
Menu: pass the original event to the select callback.
...
Fixes #5343 - Add option to allow form submission when option is chosen.
2010-03-20 16:17:56 -04:00
Scott González
c61bd8ec67
Menu: Don't trigger select if a click occurs outside of a menu item.
...
Fixes #5376 - Menu plugin fires select when border is clicked.
2010-03-20 15:09:46 -04:00
Scott González
e70743cdcb
Autocomplete: Don't trigger a search when the left or right arrow keys are used.
...
Fixes #5289 - Autocomplete: ignore cursor left/right.
2010-03-20 14:58:38 -04:00
Scott González
22ba931c39
Menu: skip over elements that aren't menu items.
...
Fixes #5188 - Refactor menu rendering for more customizing.
2010-03-20 14:37:25 -04:00
Jörn Zaefferer
65d8fa2b0c
autocomplete: pass through mouse and key events to menu methods in order to differentiate between key and mouse events in autocomplete
2010-03-20 14:57:06 +00:00
Richard Worth
f2438fe7eb
fixed #5368 - Autocomplete: aria role for menu should be listbox instead of menu
2010-03-17 23:22:02 +00:00
Scott González
03adce34dd
Menu: Don't pass empty values to ._trigger().
2010-03-16 00:26:06 +00:00
Richard Worth
d2272f86bc
Autocomplete: fixed #5349 - Autocomplete: mouseover of menu item causes data loss
2010-03-15 21:24:42 +00:00
Richard Worth
2be46581da
Autocomplete: fixed #5349 - Autocomplete: mouseover of menu item causes data loss
2010-03-15 21:11:21 +00:00
Richard Worth
e6c30b0d97
Autocomplete: Fixed #5348 - Autocomplete: menu item should not remain selected when mouse off menu
2010-03-15 20:57:02 +00:00
Richard Worth
9aa56386a3
Autocomplete: fixed #5347 - Autocomplete: each successive item hover makes item above shrink a bit in IE
2010-03-15 20:40:20 +00:00
Richard Worth
a48466b194
Autocomplete: quiet jslint
2010-03-11 22:06:29 +00:00
Scott González
c2ed8ffc07
Autocomplete: Resize menu on every suggestion.
2010-03-11 04:37:21 +00:00
Scott González
5f213572d6
Autocomplete: Append menu to body and reset z-index on every suggestion.
...
Fixes #5271 .
2010-03-11 03:28:00 +00:00
Richard Worth
caa1786c61
Fixed #5305 - Autocomplete: open event should trigger after the menu is opened since the name is not 'beforeopen'
2010-03-08 16:35:24 +00:00
Scott González
602576707e
Autocomplete: search against label instead of value when both are provided.
...
Fixes #5237 - Array matching behaviour of autocomplete should match on label before value.
Thanks Simon Cusack.
2010-02-27 19:57:34 +00:00
Scott González
aa8f6c5fc1
Autocomplete: Fixed class removal in .destroy().
2010-02-23 02:59:05 +00:00