Commit Graph

2891 Commits

Author SHA1 Message Date
Jörn Zaefferer
41c2afd66b Dialog: Refactor overlay handling into two instance methods. Remove unaddressable TODOs. 2012-11-26 10:28:24 +01:00
Jörn Zaefferer
a0310eb091 Dialog: Move array notation support for position option to backCompat check. Fixes #8824 - Deprecate array notation for position option. 2012-11-26 10:28:24 +01:00
Jörn Zaefferer
0be97bf8c0 Dialog: Removed broken disabled option from dialog, defuse disable/enable methods. Disabling dialogs is not supported. 2012-11-26 10:28:24 +01:00
Jörn Zaefferer
b27db7e3b9 Dialog: Extend autofocus, starting with [autofocus], then :tabbable content, then buttonpane, then close button, then dialog. Fixes #4731 - Dialog: Add option to set which element gains focus on open 2012-11-26 10:28:24 +01:00
Jörn Zaefferer
999617343f Dialog: Pass through icons and showText (as 'text') options to button. Fixes #6830 - Allow Icons to be specified for Dialog buttons. 2012-11-26 10:28:23 +01:00
Jörn Zaefferer
d8b98ec3bb Dialog: Tiny code improvements 2012-11-26 10:28:23 +01:00
Jörn Zaefferer
e3dcaf28eb Dialog: Remove uuid and getTitleId. Leftovers from 240b22b143. 2012-11-26 10:28:23 +01:00
Jörn Zaefferer
0bc73b74b6 Dialog: Remove busted ui-dialog-disabled class, shouldn't be there. Removed outdated TODOs. 2012-11-26 10:28:23 +01:00
Jörn Zaefferer
972f5c192c Dialog: Button is now a fixed dependency, so remove the check 2012-11-26 10:28:23 +01:00
Jörn Zaefferer
0ae6fc1e02 Dialog: Remove useless tmp vars. 2012-11-26 10:28:23 +01:00
Jörn Zaefferer
625a111fb9 Dialog: Extracting wrapper creation into _createWrapper. Merging the two keydown handlers into one. 2012-11-26 10:28:23 +01:00
Jörn Zaefferer
4c9caa8169 Dialog: Extract button pane creation into _createButtonPane 2012-11-26 10:28:22 +01:00
Jörn Zaefferer
1d6ce644e0 Dialog: Refactor _create, extracting title bar creation in _createTitlebar 2012-11-26 10:28:22 +01:00
Jörn Zaefferer
f0acaac230 Dialog: Refactor uiDialogTitlebar variable, use this.uiDialogTitlebar instead. Wasn't needed anymore (previous refactorings). 2012-11-26 10:28:22 +01:00
Jörn Zaefferer
7a0353500a Dialog: Refactor the mousedown-bind call to use _on, removing the need for the uiDialog closure. Use this.uiDialog and remove the variable. 2012-11-26 10:28:22 +01:00
Jörn Zaefferer
1001504249 Dialog: Remove outdated TODO 2012-11-26 10:28:22 +01:00
Jörn Zaefferer
c8aef203cb Dialog: Have _makeResizable look at options instead of passing handles. 2012-11-26 10:28:22 +01:00
Jörn Zaefferer
16a79c1b9c Dialog: Finish refactoring _setOption, getting rid of unnecessary switch (no fallthroughs). 2012-11-26 10:28:22 +01:00
Jörn Zaefferer
7e964be80c Dialog: Have _createButtons access the buttons option directly. Start refactoring _setOption, no need for switch. 2012-11-26 10:28:22 +01:00
Jörn Zaefferer
fed2972027 Dialog: Refactor _setOption to call _super early. Move dialogClass update above that to access old option value. 2012-11-26 10:28:22 +01:00
Jörn Zaefferer
83a9f219bf Dialog: Use button widget for close button (was already listed as dependency) 2012-11-26 10:28:21 +01:00
Jörn Zaefferer
0848040d3e Dialog: Focus tabbable only when dialog lost focus before. 2012-11-26 10:26:12 +01:00
Jörn Zaefferer
6edce86733 Dialog: Remove attroperty workaround for title attribute. Make the default null, as it should be. No back-compat, as the behaviour doesn't change. 2012-11-26 10:26:12 +01:00
Jörn Zaefferer
f7d3a51589 Dialog: Only add the new dialogClass, not the base classes when changing the option. 2012-11-26 10:26:12 +01:00
Jörn Zaefferer
324d54dd32 Dialog: Use $.isEmptyObject() to check if there a button-option properties 2012-11-26 10:26:12 +01:00
Jörn Zaefferer
4e03321fd7 Dialog: Trigger focus event when dialog is moved to top. 2012-11-26 10:26:12 +01:00
Jörn Zaefferer
b6cefc797e Dialog: Remove deprecated disableSelection() usage. 2012-11-26 10:26:11 +01:00
Jörn Zaefferer
4632780435 Dialog: Fix yoda-if, remove unnecessary TODOs; add missing callbacks to commons test 2012-11-26 10:26:11 +01:00
Jörn Zaefferer
2062a18db6 Dialog: Inline code review 2012-11-26 10:26:11 +01:00
Jörn Zaefferer
0a25b2c448 Dialog: move to top when opening again, and focus as if opened from scratch. 2012-11-26 10:26:11 +01:00
Jörn Zaefferer
8ee8046c02 Dialog: Keep focus inside modal dialog, by handling focus events on elements outside of it 2012-11-26 10:26:11 +01:00
Jörn Zaefferer
2a887e4321 Dialog: Improve accessibilty - add an aria-describedby attribute on the dialog if there is nothing yet in the dialog content. Partial fix for: 2012-11-26 10:26:11 +01:00
Corey Frang
d7adc2bae9 Effects Core: Upgrading jQuery Color to 2.1.1 2012-11-23 11:18:07 -06:00
Corey Frang
a217bd3b16 Effects: Making sure outerHeight and outerWidth make it through to the .size() implementation in all cases - Fixes IE8 effects failure 2012-11-22 04:12:30 -06:00
kborchers
d3bc471688 Progressbar: Add ability to set value: false for an indeterminate progressbar. Fixes #7624 - Progressbar: Support value: false for indeterminate progressbar 2012-11-21 21:48:17 -06:00
Mike Sherov
509259a66e Button: add explanatory comment for when we bind to blur 2012-11-21 19:58:59 -05:00
TJ VanToll
93abe02b60 Button: Fixing handling of the disabled options on refresh method calls. Fixed #8828 - Button: Refresh does not re-enable disabled button. 2012-11-21 19:24:24 -05:00
Samuel Bovée
cb748b4a6f Slider: factorize code with Widget method call. Fixed #8772 - Wrong slider UI state when disabled at init 2012-11-21 19:18:00 -05:00
Mike Sherov
f13b5dfa7f Button: add blur event to buttons. Fixes #8559 - Button: Button doesn't remove active state when using keyboard. 2012-11-21 19:14:04 -05:00
Scott González
d5afdba4cb Autocomplete: Whitespace. 2012-11-19 17:08:41 -05:00
Roman Salnikov
7ffcaa2e3b Datepicker: reinitialize datepicker if mainDiv isn't on the page. Fixed #5679 - Datepicker should reinitialize if dpDiv is removed 2012-11-19 09:15:10 -05:00
mathias.stenbom
cf9fbce139 Draggable: made handles work with complex markup. Fixes #8757 - Draggable: Resizable handle with inner element does not work, when its also draggable 2012-11-19 09:06:50 -05:00
Mike Sherov
cc7df712cc Button: properly escape button names. Fixes #7505 - Button: Buttonset not applied to radio group with quotation/apostrophe in name. 2012-11-19 08:37:41 -05:00
Mike Sherov
4334b5d4f1 Dev: make Datepicker pass JSHint with only eval setting overridden 2012-11-18 15:01:30 -05:00
Mike Sherov
53c462b666 Dev: make draggable pass JSHint with no local overrides 2012-11-18 11:44:12 -05:00
Mike Sherov
0e800636c4 Dev: Make droppable pass JSHint with no local settings overrides 2012-11-17 14:51:56 -05:00
Mike Sherov
5bae9a4763 Dev: Make sortable pass JSHint with only the loopfunc setting override 2012-11-17 14:24:44 -05:00
Mike Sherov
a1b32b59d5 Resizable: use css() instead of position() for absolute placement. Fixes #3815 - Resizable: absolutely positioned element inside scrollable element is repositioned when resized 2012-11-17 01:29:39 -05:00
Mike Sherov
9eaa572de1 Dev: Make resizable pass JSHint without any settings overrides 2012-11-17 00:08:01 -05:00
Scott González
3541c54082 Tabs: Removed some legacy code that isn't doing anything. 2012-11-16 16:57:36 -05:00
Scott González
23f7e30c77 Tabs: Remove ui-tabs-aria-controls data on destroy. 2012-11-16 16:10:22 -05:00
Juan Pablo Kaniefsky
a18863205e Slider: when handles overlap, clicking and dragging will now pick the last one that was moved. Fixed #3467 - Sliders Handles can overlap, only small sliver of slider is selectable 2012-11-16 09:32:56 -05:00
Scott González
3d96f20506 Datepicker: Fixed firstDay in Faroese locale. Fixes #8815 - Datepicker: Faroese locale has incorrect firstDay. 2012-11-14 15:06:37 -05:00
Scott González
ca0df6b900 Tooltip: Removed logic for handling tracking tooltips which gain focus while open (we no longer mix events). Fixes #8799 - Tooltip: tracking fails on nested elements. 2012-11-14 14:42:36 -05:00
Scott González
1b503a237e Tooltip: Handle synthetic focusin events. Fixes #8740 - Tooltip: Does not hide consistently with dynamically loaded content. 2012-11-14 14:14:45 -05:00
Jay Merrifield
eca5abd873 Datepicker: Updated the range tests so you can't navigate past the yearRange. Fixes #7362 - Datepicker allows changing year to something outside yearRange 2012-11-13 21:08:55 -05:00
Scott González
2553d61384 Accordion: Use .css() to clear the height, instead of .height(). 2012-11-13 19:02:02 -05:00
Ethan Romba
3974b55ba5 Resizable: Update CSS dimensions selectively. Fixes #7605 - Setting width and height when only one is changing
Resizable: Trigger resize event only when element is resized. Fixes #5545 - Callbacks ignore the grid.

Resizable: Added event tests. Fixes #5817 - resize event reports unconstrained ui.size
2012-11-12 21:41:22 -05:00
David Petersen
d657538ed5 Accordion: Enhance refresh to allow adding/removing panels. Fixes #4672 - Accordion: ability to add/remove panels 2012-11-11 21:38:21 -05:00
Cory Gackenheimer
8e1ceba717 Button: use _hoverable for hover state management. Fixes #5295 - button doesn't remove hover state if they are disabled 2012-11-11 21:17:05 -05:00
Kris Borchers
11687e44dc Progressbar: Do not duplicate base _setOptions method 2012-11-11 16:52:23 +09:00
Mike Sherov
d6c6b7dc33 Dev: make sure all files can pass JSHint! 2012-11-09 17:30:43 -05:00
Scott González
9e858ba14a Widget: Only use the event prefix from the base if we're redefining a widget. Fixes #8805 - Widget: widgetEventPrefix is incorrect when inheriting with jQuery UI 1.9.1. 2012-11-09 16:49:03 -05:00
Mike Sherov
254f2b3698 Dev: fix the datepicker test suite and jshint everything. Fixes #8804 - Dev: re-enable the datepicker test suite 2012-11-09 16:27:45 -05:00
Scott González
fd48568c40 Tabs: Show panels on destroy. Fixes #8795 - Tabs: 'display: none;' attribute is not removed from tabs when destroy is called. 2012-11-09 14:52:57 -05:00
Scott González
dbaecf0ede Effects: Cleaned up getElementStyles(). 2012-11-09 14:47:20 -05:00
Scott González
f5870712c1 Updated all widgets to use proper data keys when getting plugin instances. 2012-11-09 13:28:13 -05:00
Scott González
498aadf644 Tooltip: Ignore disabled checks when closing. Fixes #8758 - Tooltip: Tooltip is shown, but not hidden if element has class=ui-state-disabled. 2012-11-09 13:07:53 -05:00
Scott González
1cdeeccab0 Widget: Suppress disabled check when binding destroy to the remove event. Fixes #8769 - Widget: ui-state-disabled blocks destroy to be triggered on remove. 2012-11-09 12:54:33 -05:00
Scott González
d44557f50a Widget: Removed dual storage of widget instances. Fixes #8801 - Widget: Remove data fallbacks for widget names. 2012-11-09 12:51:26 -05:00
Scott González
84cd214486 Widget: Added suppressDisabledCheck flag to _on(). Fixes #8800 - Widget: Ability to use _on() even when disabled. 2012-11-09 12:39:41 -05:00
Ethan Romba
6e0a0553ce Resizable: Grid now respects min/max dimensions. Fixed #8435 - grid does not respect min/max dimensions 2012-11-09 09:48:50 -05:00
Kris Borchers
8976bc7e3d Progressbar: Refactor to better handle option changes and sanitize values. Fixes #8785 - Progressbar: Remove _value() and always sanitize value option 2012-11-08 12:02:25 -06:00
Sergey Kartashov
1e19e5e90b Datepicker: Added Kyrgyz localization. Fixes #8787 - Datepicker: Add Kyrgyz localization. 2012-11-07 14:26:47 -05:00
Avinash R
75bd22eb73 Widget: Bridge falls back to name if there is no widgetFullName, and always stores instances in data. Fixed #8775 - Widget: Bridge fails if widgetFullName is not supplied. 2012-11-07 10:05:00 -05:00
Scott González
979bcab513 Revert "Datepicker: Added Kyrgyz localisation"
This reverts commit 4995ea05fe.
2012-11-06 15:09:21 -05:00
elisy
4995ea05fe Datepicker: Added Kyrgyz localisation 2012-11-06 12:48:19 -05:00
Scott González
c6b52db892 Tabs: Encode spaces from window.location. Fixes #8777 - Tabs fail in Safari 5.1 when window.location contains a space. 2012-11-06 08:01:11 -05:00
Scott González
886d6fe9fb Core: Patch over broken .removeData() in jQuery 1.6.1 + 1.6.2. 2012-11-05 15:38:31 -05:00
Scott González
8a32c39136 Core: Moved old jQuery support code to the bottom (above deprecated). 2012-11-05 15:24:45 -05:00
Scott González
02694a90f3 Tooltip: Use ui-tooltip-open instead of tooltip-open for data key. 2012-11-05 15:03:15 -05:00
Mathias Stenbom
0bff32a2b1 Resizable: Made handles work with complex markup. Fixes #8756 - Resizable: Complex markup for handles. 2012-11-05 13:16:48 -05:00
Jörn Zaefferer
1d9eab1ead Tooltip: Make 'flipfit flip' the collision default to avoid the tooltip ever overlapping the trigger. Also fix max-width for custom-content demo. Fixes #8739 - Tooltip: Default positioning on large items off. 2012-11-05 19:05:58 +01:00
Jörn Zaefferer
98173a3d0e Tooltip: Check type on event directly, preventing TypeError when programmatically moving focus to track-toolipped-input. Fixes #8747 - Tooltip: Using the track option within dialogs creates JS errors 2012-11-05 18:59:52 +01:00
Jörn Zaefferer
8b3e570241 Menu: Look into submenus for uninitialized menu items. Fixes #8773 - Menu: refresh() doesn't refresh existing submenus. 2012-11-05 18:42:41 +01:00
Scott González
c677275821 Core: Simplify IE check now that we don't care about IE6. 2012-11-05 11:28:04 -05:00
Scott González
a8de99c791 Dialog: Don't use .attr( props, true ). 2012-11-05 09:37:19 -05:00
Mike Sherov
68ad80c292 Dev: Standardize sortable test suite. Fixed #8755 - Dev: Get sortable test suite to pass 2012-11-01 20:54:52 -04:00
Mike Sherov
d85b0160f2 Dev: Standardized the resizable test suite. Fixed #8754 - Dev: Get resizable test suite to pass 2012-10-31 09:50:36 -04:00
Mike Sherov
8746042ae1 Dev: Standardized the droppable test suite. Fixed #8753 - Dev: Get droppable test suite to pass 2012-10-30 22:24:41 -04:00
Mike Sherov
b49e071d39 Dev: Standardized the selectable test suite. Fixed #8752 - Dev: Get selectable test suite to pass 2012-10-30 22:19:55 -04:00
Mike Sherov
f0daa220d6 Dev: Standardized the draggable test suite. Fixed #8748 - Dev: Get draggable test suite to pass 2012-10-30 22:13:43 -04:00
Corey Frang
a688e7c8d4 Mixed spaces and tabs removed 2012-10-29 13:37:06 -05:00
Scott González
d074efe528 Tooltip: Use attributes, not properties, when checking for parent tooltips. Fixes #8742 - Tooltip shows incorrect message in chrome if there is input with name='title' in a form. 2012-10-28 20:28:55 -04:00
Scott González
995eb1261e Core: Removed $.ui.ie6. 2012-10-26 16:08:05 -04:00
Scott González
5bd19650a3 Datepicker: Removed iframe cover for IE6. 2012-10-26 15:59:29 -04:00
Scott González
d73edfff76 Resizable: Removed pixel shifting for IE6. 2012-10-26 15:48:37 -04:00
Scott González
0c672543bf Core: Removed $.support.minHeight. 2012-10-26 15:45:34 -04:00
Scott González
5bd4b11d9b Dialog: Removed minHeight workaround for IE6. 2012-10-26 14:36:35 -04:00
Scott González
da1255a392 Tabs: Removed overflow workaround for IE6. 2012-10-26 14:34:03 -04:00