meh-cfl
9668cb850e
Autocomplete: Don't invoke a search from arrow keys when the element can have multi-line text. Fixes #7639 - Key up/key down in textarea's should optionally not toggle auto-complete.
2012-04-07 09:07:21 -04:00
Scott González
d040b8f42c
Autocomplete: Move race condition logic from ajax requests to general response handler. Fixes #8234 - Autocomplete: Automatic race-condition handling for custom sources.
...
(cherry picked from commit 96f9c84b7b
)
Conflicts:
tests/unit/autocomplete/autocomplete_core.js
ui/jquery.ui.autocomplete.js
2012-04-03 16:51:22 -04:00
Jörn Zaefferer
dc67d2c5d2
Protect all copyright notices against minification
...
For instance, this is useful for the jquery-ui-rails gem, which does not
use jQuery UI's own minification, but relies on Rails to minify the
files where necessary. Rails in turn uses UglifyJS for JS and YUI for
CSS, both of which respect the /*! ... */ convention.
(cherry picked from commit 37dcc3e21d
, dropped menu, spinner and tooltip)
2012-04-02 18:14:51 +02:00
felix
6fb584e700
Fixes #6979 - Several components are leaking variables into the global scope.
2012-03-29 18:12:47 -04:00
Scott González
5e3ad8f160
Updated copyright year.
2012-03-19 09:25:07 -04:00
Scott González
fc6d6e138c
Autocomplete: Set context for ajax requests instead of relying on default context. Fixes #7490 - Autocomplete fails when context option is set with ajaxSetup.
...
(cherry picked from commit 041cb39a66
)
2012-02-11 08:15:54 -05:00
Scott González
757384b8c5
Autocomplete: Add 1px to the width of the menu to avoid wrapping in Firefox. Fixes #7513 - Autocomplete: long text wraps in Firefox.
...
(cherry picked from commit 4cc61b459d
)
2011-10-25 17:20:56 -04:00
Scott González
b41873ba0d
Autocomplete: Re-enable native autocomplete whent he page is unloaded. Fixes #7790 - Autocomplete-enabled text input does not keep value when using back button in browser.
2011-10-18 08:10:57 -04:00
Scott González
b796cc57bd
jQuery 1.6 support.
2011-07-29 14:57:06 -04:00
Scott González
36110e07d4
Autocomplete: Use appropriate methods for getting scroll values for .prop()/.attr() compat. Fixes #7354 - Autocomplete: Scrollable results don't visually update with jQuery 1.6.
2011-05-11 08:40:16 -04:00
Richard Worth
3cfba5d9a8
Autocomplete: moved autoFocus implementation to after menu visible for a11y
...
(cherry picked from commit 4026d3acd7
)
2011-03-15 12:27:40 -04:00
Richard Worth
779df6517d
Autocomplete: new option autoFocus, default false. Fixed #7032 - Autocomplete: Add option to automatically highlight the first result
2011-03-15 05:43:19 -04:00
Scott González
6b9b513e77
Autocomplete: Fixed handling of race conditions when using jQuery 1.3.2. Fixes #6904 - Autocomplete: Race condition handling means.
...
(cherry picked from commit a1ab9678e9
)
2011-01-27 14:50:40 -05:00
Scott González
83fca58d1c
Updated copyright year.
2011-01-17 09:36:00 -05:00
Scott González
2aabc3911c
Autocomplete: Track pending requests and only remove the loading class when the last request completes. Fixes #6761 - Autocomplete: Loading class removed when multiple Ajax requests occur.
2010-12-18 14:44:27 -05:00
Scott González
d2a12ff825
Autocomplete: Abort pending ajax requests when disabled and prevent handling results when disabled. Fixes #6752 - Menu may still render when autocomplete is disabled.
2010-12-18 14:44:18 -05:00
Scott González
eac910f315
Autocomplete: Update selectedItem in the asynchronous focus handling for IE. Fixes #6709 - Autocomplete: Null ui.item on change event in IE8.
2010-12-01 11:51:16 -05:00
Scott González
40135bb091
Autocomplete: Handle ajax errors and timeouts. Fixes #6692 - Autocomplete: ui-autocomplete-loading class not removed when Ajax request times out.
2010-11-30 22:19:20 -05:00
Scott González
f85b998f44
Autocomplete: Re-position menu after resizing, not before. Fixes #6648 - Autocomplete menu position issue when positioned to the right.
2010-11-12 08:41:36 -05:00
Scott González
f4d8ec9159
Autocomplete: Trigger close after hiding the menu. Fixes #6227 - Autocomplete: Don't trigger close event until after the menu is hidden.
2010-10-26 09:05:38 -04:00
Scott González
5c67ed26e8
Autocomplete: Always reset this.term after a select event, even if the select is cancelled. Fixes #6221 - Autocomplete: Doesn't reset after Select when textbox cleared, if same letters typed in rapidly; source function not triggered in that case.
2010-10-25 10:01:43 -04:00
Scott González
a0c856467d
Autocomplete: Split menu resizing logic into its own method to create a more logical method to proxy for custom sizing.
2010-10-21 22:15:13 -04:00
Scott González
450d0306dd
Autocomplete: Don't react to key events on readonly inputs. Fixes #6170 - autocomplete pops up on readOnly inputs.
2010-10-11 17:23:50 -04:00
Scott González
da13ea26fe
Autocomplete: Pass along some more original events.
2010-10-11 08:51:54 -04:00
Dmitry Petrov
c3b282fceb
Autocomplete: Prevent keypress events caused by enter key when selecting an item. Fixes #6055 - Autocomplete: Selecting an item by pressing enter submits the form in Opera.
2010-10-06 10:24:03 -04:00
Scott González
a5c119558b
Autocomplete: Make sure we have a response before trying to check the length. Fixes #6147 - Autocomplete: Errors on empty responses.
2010-10-05 11:09:39 -04:00
Scott González
adcafce7a2
Autocomplete: Only prevent the default action for enter when a menu item is active. Fixes #6038 - Autocomplete: Allow default behaviour on enter when menu is open but inactive.
...
Thanks Ján Suchal.
2010-09-27 10:10:00 -04:00
Scott González
dda7bcb638
Autocomplete (Menu): Only traverse through .ui-menu-item elements for paging. Fixes #6029 - Autocomplete: Custom item can be activated (and result in error) on PageUp/PageDown key click.
2010-09-27 09:10:18 -04:00
Scott González
0ccc78698b
Autocomplete: Handle IE firing focus events asynchronously. Fixes #6109 - Autocomplete Change event does not fire in IE.
2010-09-24 16:49:10 -04:00
Scott González
d380099116
Autocomplete: Properly handle non-item clicks inside the suggestion list. Fixes #6052 - Autocomplete suggestion list does not close properly.
2010-09-20 09:27:32 -04:00
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