Jo Liss
37dcc3e21d
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.
2012-04-02 15:21:06 +02:00
Scott González
932fe888c0
Updated copyright year.
2012-03-08 10:53:08 -05:00
Jörn Zaefferer
d901cd4160
Autocomplete: Add removal TODOs for #7810
2012-03-01 14:40:23 +01:00
Jörn Zaefferer
811b377aad
Update data naming for autocomplete. Backwards compatible for overrides of _renderItem. Partial fix for #7810
2012-02-28 16:08:59 +01:00
Scott González
f5b52a89a7
Autocomplete: Removed the timeout for the change event. Fixes #7550 - Autocomplete change event not triggered in time.
...
Thanks spekary for finding a workaround for IE.
2012-02-16 20:24:11 -05:00
Scott González
adaba7790b
Autocomplete: Fixed typo in comment.
...
Thanks Jellyfrog.
2012-02-12 19:27:28 -05:00
Scott González
530d4cb408
Autocomplete: Cancel search when closing the menu. Fixes #7523 - Autocomplete cancel pending request when text changes below minLength.
2012-02-11 10:12:51 -05:00
Scott González
041cb39a66
Autocomplete: Set context for ajax requests instead of relying on default context. Fixes #7490 - Autocomplete fails when context option is set with ajaxSetup.
2012-02-11 08:15:24 -05:00
kborchers
f0007ec745
Menu: Change first() and last() to isFirstItem() and isLastItem()
2011-12-23 09:48:14 -06:00
meh-cfl
06f6fa8524
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.
2011-11-28 16:33:23 -05:00
Shannon
2445e20a85
Autocomplete: Making sure we do not show search menu after a blur. Fixed #7423 - Tab out of autocomplete with remote source can leave menu showing.
2011-11-23 13:39:45 -05:00
Jörn Zaefferer
66f9e12797
Widget: Remove method argument from _super and _superApply. Was a left-over from first implementation, not necessary anymore.
2011-11-18 17:08:40 +01:00
Scott González
4cc61b459d
Autocomplete: Add 1px to the width of the menu to avoid wrapping in Firefox. Fixes #7513 - Autocomplete: long text wraps in Firefox.
2011-10-25 17:19:26 -04:00
Scott González
a0856efef3
Widget: Added window and document properties. Fixes #7801 - Widget: Add document and window properties.
2011-10-20 16:57:47 -04:00
Scott González
81b2ef4a60
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-17 09:25:36 -04:00
Scott González
63374dcb52
Autocomplete: Avoid handling keypress when keydown modified the search term. Fixes #7799 - Autocomplete regression - Cannot type '&' in IE and Chrome.
2011-10-17 08:11:23 -04:00
Scott González
75415b35ea
Autocomplete: Don't react to the escape key if the menu isn't open. Fixes #7579 - autocomplete overwrites input erroneously when user hits ESC before timeout expires.
2011-10-12 16:25:59 -04:00
Scott González
84e99650bf
Autocomplete: Added missing semicolon.
2011-10-12 13:58:02 -04:00
Scott González
d8b0ce8db2
Autocomplete: Use strict equality check.
2011-10-12 13:53:50 -04:00
Scott González
ea19645c20
Autocomplete: Don't react to menu blurs. Fixes #7742 - Autocomplete: Blur should not change the value of the input.
2011-10-12 13:38:38 -04:00
David Leal
663719863f
Autocomplete: Fix stray reference to element.val().
2011-10-01 12:06:40 +01:00
Jörn Zaefferer
cf3e655be1
Autocomplete: Delay option just delays request, doesn't clear existing timeout, therefore not preventing unncessary requests. Calling abort() on existing requests has no effect for JSONP, but even then its unncessary to start a request if the user is still typing. Works fine in 1-8-stable.
2011-09-24 19:07:08 +02:00
Scott González
c5ba0535cf
Autocomplete: Fixed setting of valueMethod for textareas. Fixes #7674 - Autocomplete doesn't work with textareas.
2011-08-30 20:45:48 -04:00
Kouhei Sutou
b83a2063cf
Autocomplete: ensure clear searching timeout on destroy.
2011-08-07 15:50:34 +09:00
Corey Frang
38028f6de1
Autocomplete: Correcting readOnly from readonly - @scottgonzalez
2011-07-29 13:12:34 -05:00
Scott González
0080f2d581
Use .attr() for boolean ARIA attributes.
2011-07-12 11:36:34 -04:00
Scott González
da84672db8
.attr() -> .prop()
2011-06-08 17:02:57 -04:00
Scott González
6a5b21fda2
All: Moved version numbers into prototypes. Fixed #7436 - Widget: Store version numbers on instances.
2011-05-28 15:39:55 -04:00
Scott González
8a972f5cce
Autocomplete: Whitespace.
2011-05-27 08:35:18 -04:00
Jörn Zaefferer
4f0f407df3
Merge remote branch 'treyhunner/topic/autocomplete-pasting'
2011-05-18 17:47:01 +02:00
Trey Hunner
adb35572a9
Autocomplete: Trigger search timeout on all input events. Fixes #6666 - keyboard-autorepeat on Firefox and paste event
...
The input event triggers after all changes to an input field including
paste/cut events.
2011-05-15 12:50:26 -07:00
Jörn Zaefferer
c17f245d98
Autocomplete: Revert fix for #7024 , broke regular menu selection.
...
Disabled test for now (need to reopen ticket).
2011-05-11 13:19:46 +02:00
Jörn Zaefferer
7f8ccc523a
Autocomplete: Add comment to fix for #7269
2011-05-10 17:43:21 +02:00
Jörn Zaefferer
0e1bfaf1fa
Merge remote branch 'treyhunner/topic/arrow-keys'
2011-05-10 17:40:49 +02:00
kborchers
73ed73890c
Autocomplete: Added check to determine if menu has just been created to override mouseover event and reset that variable from autocomplete on close. Fixed #7024 - Autocomplete menu options are activated even if mouse is not moved
2011-05-09 16:22:11 -05:00
Scott González
c4c36e557e
Accordion, Autocomplete, Tabs: Separate callbacks and options in the defaults.
2011-04-25 08:11:52 -04:00
Trey Hunner
bdfc6d532c
Autocomplete: Fix list traversal bug. Fixes #7269 - autocomplete: holding down arrow keys in Firefox does not traverse list
...
Use keypress event for listening for arrow keys because Firefox
and Opera do not repeat keydown events for these keys.
2011-04-20 09:03:11 -07:00
Richard Worth
b5e67861bb
Autocomplete: changed autoFocus default back to false. Reverts #7042 - Autocomplete: Default autoFocus to true
2011-03-28 11:13:53 -04:00
Scott González
e7991e33f3
Autocomplete: Added response event. Fixes #6777 - Autocomplete callback when search is complete.
2011-03-22 14:07:49 -04:00
Richard Worth
4026d3acd7
Autocomplete: moved autoFocus implementation to after menu visible for a11y
2011-03-15 12:26:47 -04:00
Richard Worth
2f5eadeb8f
Autocomplete: changed autoFocus default to true for 1.9. Fixed #7042 - Autocomplete: Default autoFocus to true
2011-03-15 05:48:31 -04:00
Richard Worth
09215ef2cd
Autocomplete: new option autoFocus, default false. Fixed #7032 - Autocomplete: Add option to automatically highlight the first result
2011-03-15 05:39:56 -04:00
jzaefferer
38cfcfffe9
Menu: Update autocomplete to use deactivate and check for focus class
2011-02-24 12:05:20 +01:00
Scott González
50958718c2
Autocomplete: Added support for contenteditable elements. Fixes #6914 - Autocomplete: Support contenteditable.
2011-02-24 10:24:32 +01:00
Scott González
678ff6326a
Added version property to plugins that were missing them.
2011-02-03 12:01:26 -05:00
Scott González
a1ab9678e9
Autocomplete: Fixed handling of race conditions when using jQuery 1.3.2. Fixes #6904 - Autocomplete: Race condition handling means.
2011-01-27 14:49:59 -05:00
Scott González
29bfb86ce2
All: Define defaultElement for non-div widgets.
2011-01-23 17:55:53 -05:00
Scott González
6e0482a9cb
Updated copyright year.
2011-01-17 09:13:18 -05:00
Scott González
e0b52831fc
Updated widgets to use new methods from $.Widget.
2011-01-15 06:34:07 -05:00
Scott González
56c4c6aca9
Change destroy to _destroy and remove calls to $.Widget.prototype.destroy in widgets with simple destroy methods.
2011-01-14 17:11:22 -05:00
jzaefferer
3552947c19
Merge remote branch 'origin/menu'
...
Conflicts:
demos/autocomplete/categories.html
demos/autocomplete/combobox.html
demos/autocomplete/custom-data.html
demos/autocomplete/default.html
demos/autocomplete/folding.html
demos/autocomplete/multiple-remote.html
demos/autocomplete/multiple.html
demos/autocomplete/remote-jsonp.html
demos/autocomplete/remote-with-cache.html
demos/autocomplete/remote.html
demos/autocomplete/xml.html
demos/button/splitbutton.html
demos/index.html
tests/visual/menu/nested.html
themes/base/jquery.ui.autocomplete.css
ui/jquery.ui.autocomplete.js
2010-12-22 18:31:27 +01:00
Scott González
08422d69da
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-17 11:15:17 -05:00
Scott González
0d0c86210c
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-17 10:48:17 -05:00
Scott González
ca0ac5a64f
All: Remove workaround for .offset() setter bug from older versions of jQuery.
2010-12-11 15:19:25 -05:00
Scott González
9681b1fd7e
All: Replaced all uses of $.ui.contains() with $.contains(). Fixes #5000 - Deprecate $.ui.contains.
2010-12-10 15:13:10 -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
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
jzaefferer
adf19a1849
Renamed menu event selected to select to be consistent with naming conventions, already updated spec on wiki
2010-04-30 13:18:34 +02:00
jzaefferer
abfdb2a8b6
First attempt at integrating key handling into menu
2010-04-30 13:04:09 +02:00
jzaefferer
f0d1262d47
Actually removed the menu code from the autocomplete file
2010-04-30 10:19:36 +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