Commit Graph

3212 Commits

Author SHA1 Message Date
Scott González
68e5ebcf1a Datepicker i18n: Fix line endings. 2013-01-08 08:09:34 -05:00
Mike Sherov
da01fb6a34 Effects: Avoid cssHook blending in non-rgba browsers when the value is "transparent". Fixes #8914: odd behaviour of css hook when setting backgroundColor to transparent in IE7/8 2013-01-03 14:33:41 -05:00
Jörn Zaefferer
fb47fd0310 Merge branch 'master' into selectmenu 2013-01-03 09:45:09 +01:00
Mike Sherov
f667d090a7 Interactions: Update widget defaults to match documented API. 2013-01-02 18:27:22 -05:00
Mike Sherov
b477098da5 Slider: add options for event callbacks 2013-01-02 14:58:12 -05:00
Felix Nagel
c9602857dd Selectmenu: improve element creation 2013-01-02 19:52:18 +01:00
Felix Nagel
1ba02e9c5f Merge branch 'master' into selectmenu 2013-01-02 19:38:55 +01:00
Felix Nagel
2eb92232f3 Selectmenu: make sure position option could be overwritten 2013-01-02 19:36:56 +01:00
TJ VanToll
695358983e Selectable: Account for scrolling on the helper's initial position. Fixed #8915 - Selectable: Lasso offset issue with scrolling. 2013-01-01 08:22:18 -05:00
Kris Borchers
5561f5db12 Add comment explaining the mouseHandled flag 2012-12-29 20:08:35 -06:00
Kris Borchers
5143b7f672 Create mouseHandled flag per instance instead of globally. Fixes #8866 - Menu: select event not firing due to mouseHandled flag reset bug 2012-12-27 21:06:54 -06:00
Jörn Zaefferer
2c3d311f90 Menu: Allow changing icons option after creation. Fixes #8927 - Menu: Can't change icons option after init 2012-12-27 17:23:25 +01:00
Jörn Zaefferer
0d53fbfd0b Spinner: Trigger start/spin/stop events when calling step/page methods. Fixes #8901 - Spinner does not fire start/spin/stop events when calling stepUp()/Down(), pageUp()/Down() methods 2012-12-27 17:06:01 +01:00
Jörn Zaefferer
04d668b717 Spinner: Update button icons when option changes. Fixes #8926 - Spinner: Can't change icons option after init 2012-12-27 12:50:04 +01:00
Mike Sherov
74d7eac2da All: Convert single quotes to double quotes. 2012-12-25 12:01:09 -05:00
Mike Sherov
63d624fcb5 Datepicker: Use tabs for indentation. 2012-12-25 08:41:09 -05:00
Felix Nagel
44e472a613 Merge branch 'master' into selectmenu 2012-12-20 22:05:23 +01:00
Scott González
e21fc29610 Datepicker: Remove data event handlers from the dark ages. 2012-12-20 10:12:40 -05:00
Felix Nagel
dab7bf8993 Merge branch 'master' into selectmenu 2012-12-20 00:32:28 +01:00
Felix Nagel
50d7a969a5 Selectmenu: improve _setOption to make it possible to change icons option after init 2012-12-20 00:16:37 +01:00
Felix Nagel
a787d52d4a Selectmenu: make dropdown style default and remove option dropdown 2012-12-20 00:10:06 +01:00
Felix Nagel
52fc8e3c70 Selectmenu: add option icons 2012-12-18 19:55:04 +01:00
Dominic Barnes
209443d716 Slider: Create clone of options.values during _create(). Fixed #8892 - Multiple Sliders have Conflict with options.values. 2012-12-18 11:48:10 -05:00
Scott González
9cbd4b4222 Tooltip: Clear the tracking interval on close. Fixes #8920 -Tooltip potential setinterval endless loop. 2012-12-18 08:38:36 -05:00
Matthieu Penant
9f841dffcc Datepicker: Added Candian French locale. Fixes #8917 - Datepicker: Add Canadian French locale. 2012-12-17 08:30:23 -05:00
Felix Nagel
1afede867d Selectmenu: remove zIndex 2012-12-16 01:44:19 +01:00
Felix Nagel
76f335ea68 Selectmenu: CGL and lint fixes 2012-12-15 02:40:14 +01:00
Felix Nagel
57ecee889d Selectmenu: rework appendTo functionality 2012-12-15 02:21:51 +01:00
Felix Nagel
8aa24dd1d5 Merge branch 'master' into selectmenu 2012-12-15 01:10:32 +01:00
Felix Nagel
e2b5123f37 Selectmenu: introduce _setText helper function to improve handling of empty strings 2012-12-14 18:04:51 +01:00
Scott González
8ec7a1b69f All: Use .addBack() instead of .andSelf(). 2012-12-14 11:13:50 -05:00
Scott González
80e46c93a8 Autocomplete: Append to closest .ui-front if available. 2012-12-14 09:10:32 -05:00
Felix Nagel
1ea22565d3 Selectmenu: fix closing of empty selects 2012-12-13 01:12:52 +01:00
Felix Nagel
c69d01bed7 Selectmenu: replace placeholder entity with   2012-12-13 00:54:45 +01:00
Felix Nagel
89019606eb Selectmenu: revert change to text instead of html, otherwise the unicode special char wont be displayed 2012-12-13 00:53:51 +01:00
Felix Nagel
ed422bd855 Selectmenu: removed ugly workaround for IE9 to make sure the menu is built on first focus 2012-12-12 23:43:32 +01:00
Felix Nagel
b15ae2a64f Selectmenu: merge and explain if statements in Menu focus event, remove unneeded Menu focus method call in open 2012-12-12 19:31:39 +01:00
Felix Nagel
20aad07fe4 Selectmenu: fix comment typo 2012-12-12 17:39:00 +01:00
Felix Nagel
07328359e9 Selectmenu: use method _documentClick for adding events to the document 2012-12-12 17:26:17 +01:00
Scott González
ff78d0bbce Core: Moved selectstart support test to deprecated section. 2012-12-12 11:22:08 -05:00
Scott González
f5aaf874e9 Progressbar: Moved .ui-progressbar-indeterminate to main element. Added tests for markup structure. 2012-12-12 11:21:49 -05:00
Felix Nagel
f6372bd7ea Merge branch 'master' into selectmenu 2012-12-12 16:44:19 +01:00
Felix Nagel
d1350f9f11 Selectmenu: improve option appendTo handling in appendTo method 2012-12-12 16:34:56 +01:00
Scott González
747d853452 Core: Removed $.ui.contains. Fixes #8902 - Remove $.ui.contains. 2012-12-12 08:54:53 -05:00
Scott González
0f111a2ac4 Dialog: Spacing. 2012-12-12 08:47:21 -05:00
Scott González
b9f206dbcf Dialog: Cleanup. 2012-12-11 16:23:18 -05:00
Jörn Zaefferer
2845d38d40 Selectmenu: Select value when closing with space 2012-12-09 12:58:47 +01:00
Jörn Zaefferer
15032d17d9 Selectmenu: Remove colons from labels, annoying for screenreader-users. Cleanup whitespace. 2012-12-09 12:36:35 +01:00
Scott González
d4551bc3b8 Dialog: Respect maxHeight when determining size on open. Fixes #4820 - Dialog: Auto height does not respect the maxHeight option. 2012-12-07 16:57:03 -05:00
Scott González
70b16ef445 Dialog: Added appendTo option. Fixes #7948 - Dialog: Allow dialog to be attached to a element other than body. 2012-12-07 14:54:21 -05:00
Scott González
da17a232ca Autocomplete: Handle detached elements for appendTo after create. 2012-12-07 11:58:58 -05:00
Scott González
a1eb9ca4be Position: Split out dimension parsing. 2012-12-06 15:00:42 -05:00
Scott González
fb38c20763 Droppable: Added missing semicolon. 2012-12-06 14:43:35 -05:00
Scott González
3ec0c2e572 Core: Removed $.ui.isOver() and $.ui.isOverAxis(). Fixes #8891 - Remove $.ui.isOver() and $.ui.isOverAxis(). 2012-12-06 14:42:10 -05:00
Scott González
b239298946 Allow higher cyclomatic complexity in functions that sanely use switch statements. 2012-12-06 14:31:21 -05:00
Scott González
ebf8a60187 Tabs: Reduce cyclomatic complexity. 2012-12-06 14:31:21 -05:00
Kris Borchers
b44375aef1 Progressbar: Take min into account when calculating percentage. 2012-12-06 11:07:07 -06:00
Scott González
f7614706ab Progressbar: Cleanup, byte shaving. 2012-12-06 10:10:07 -05:00
Scott González
f1be88e795 Progressbar: Only remove aria-valuenow for indeterminate progressbars. Added more accessibility tests. 2012-12-06 09:35:41 -05:00
Scott González
8c763cdf98 Progressbar: Define defaults for callbacks. 2012-12-06 09:21:25 -05:00
Scott González
1e5662ebe5 Tabs: Decode URIs before comparing. Fixes #8877 - Tabs: isLocal function issue in Safari 5.1.7. 2012-12-05 17:19:14 -05:00
Scott González
f59f5a8b12 Dialog: Restore inline styles for dimensions/display. Fixes #8119 - Dialog: Destroying a dialog leaves some styles changed. 2012-12-05 11:53:34 -05:00
Bjørn Johansen
70f5d18c71 Datepicker: Added Norwegian Bokmål and Norwegian Nynorsk locales. Fixes #8886 - Datepicker: Add Norwegian Bokmål (nb) and Norwegian Nynorsk (nn) locales.
Signed-off-by: Bjørn Johansen <bjorn.johansen@metronet.no>
2012-12-05 11:03:11 -05:00
Pavel Selitskas
cff4c3c4f3 Datepicker: Added Belarusian locale. Fixes #8885 - Datepicker: Add Belarusian locale. 2012-12-05 10:54:53 -05:00
Scott González
598cdae199 Datepicker: Handle changes to the disabled option. Fixes #8883 - Datepicker: Changing disabled option doesn't work. 2012-12-05 10:38:31 -05:00
Scott González
3c2acc3227 Dialog: Remove width, min-height, height styles on destroy. Fixes #8119 - Dialog: Destroying a dialog leaves some styles changed. 2012-12-04 10:03:05 -05:00
Scott González
050e71bdd8 Revert "Dialog: Cleanup style properties on _destroy. Reenables style check in domEqual, while removing commented and unnecessary old code. Fixes #8119 - Dialog: Destroying a dialog leaves style, scrollleft, and scrolltop leftovers."
This reverts commit d687a1b10d.
2012-12-04 09:21:33 -05:00
Scott González
8072099a3a Revert "Menu: Remove display property on hidden submenus instead of setting display:block. Surfaced by domEqual now checking for style property (see d687a1b)."
This reverts commit 53b940fa27.
2012-12-04 09:21:16 -05:00
Scott González
86f1087931 Revert "Tabs: Remove display property on hidden panels instead of setting display:block. Surfaced by domEqual now checking for style property (see d687a1b)."
This reverts commit b9068c1523.
2012-12-04 09:20:56 -05:00
Jörn Zaefferer
9bd44301d3 Dialog: Refactor _createOverlay and _destroyOverlay to use widget methods and properties. 2012-12-04 01:17:00 +01:00
Jörn Zaefferer
1e8baf5683 Dialog: Remove the instance-storing for the overlay, just create one whenever it is needed. Heavily simplifies the code, while the memorly leak should be hardly an issue anymore, since fixed positioning restricts the overlay size to the window dimensions. Fixes #6058 - Dialog overlays are not properly reused when multiple instances of a Dialog exist. 2012-12-04 01:08:34 +01:00
Jörn Zaefferer
b9068c1523 Tabs: Remove display property on hidden panels instead of setting display:block. Surfaced by domEqual now checking for style property (see d687a1b). 2012-12-04 00:56:14 +01:00
Jörn Zaefferer
53b940fa27 Menu: Remove display property on hidden submenus instead of setting display:block. Surfaced by domEqual now checking for style property (see d687a1b). 2012-12-04 00:49:37 +01:00
Jörn Zaefferer
d687a1b10d Dialog: Cleanup style properties on _destroy. Reenables style check in domEqual, while removing commented and unnecessary old code. Fixes #8119 - Dialog: Destroying a dialog leaves style, scrollleft, and scrolltop leftovers. 2012-12-04 00:35:47 +01:00
Felix Nagel
e6aca63a77 Selectmenu: simplify $.each usage in _readOptions method 2012-12-03 23:28:06 +01:00
Felix Nagel
aa60a9e114 Selectmenu: use item.index instead of _getSelectedItem method 2012-12-03 23:19:15 +01:00
Felix Nagel
60e3302d96 Selectmenu: use text() instead of html() as the option and optgroup is read as text 2012-12-03 23:07:30 +01:00
Felix Nagel
cba09dafa7 Selectmenu: guard clause should not return false 2012-12-03 23:05:09 +01:00
Felix Nagel
04553a7da5 Selectmenu: close guard close should test for closed menu 2012-12-03 23:04:53 +01:00
Scott González
8b15aaf496 Widget: Don't modify the prototype passed to $.widget(). Fixes #8876 - Calling _super calls wrong inherited widget. 2012-12-03 14:18:24 -05:00
Scott González
5ba267e7c7 Resizable: Respect containment for alsoResize option. Fixes #4603 - Resizable: alsoResize option doesn't work with containment. Fixes #5559 - Dialog: Content grows bigger than widget on resize at document edge. 2012-12-03 10:36:55 -05:00
Jörn Zaefferer
13505e5945 Dialog: Ensure all animations finish and clean up themselve when destroying dialog. Fixes #5860 - Dialog: Destroying a dialog during animated close leaves .ui-effects-wrapper in DOM. 2012-11-30 13:08:56 +01:00
Kris Borchers
f2ee4c51aa Progressbar: Create and destroy indeterminate overlay as needed and code cleanup. 2012-11-29 22:13:39 -06:00
Felix Nagel
0d282630de Selectmenu: make isOpen check a guard clause in close method 2012-11-29 20:57:44 +01:00
Felix Nagel
18ecaf45db Selectmenu: added comment about popup positioning 2012-11-29 20:33:05 +01:00
Felix Nagel
f622428c43 Selectmenu: improve disabled check in open method 2012-11-29 20:23:30 +01:00
Felix Nagel
ac7b8f925a Selectmenu: improve comment in _drawMenu 2012-11-29 20:20:43 +01:00
Felix Nagel
1e6808a1a2 Selectmenu: replace placeholder entity with &#160; 2012-11-29 20:13:57 +01:00
Felix Nagel
a177a92635 Selectmenu: improve element creation 2012-11-29 20:10:05 +01:00
Felix Nagel
e581a13c10 Selectmenu: remove unnecessary comments from _drawButton 2012-11-29 20:06:00 +01:00
Felix Nagel
71e744ad30 Selectmenu: move button event binding in _drawButton 2012-11-29 19:54:10 +01:00
Felix Nagel
080b5bca0a Selectmenu: remove unnecessary comments from _create 2012-11-29 19:53:12 +01:00
Felix Nagel
b014bc6245 Selectmenu: alphabetical ordering of options and callback events 2012-11-29 19:49:43 +01:00
Felix Nagel
8a62210538 Selectmenu: updated documentation link 2012-11-29 19:41:20 +01:00
Jörn Zaefferer
24d9141597 Dialog: Use consistent code for appending to body 2012-11-29 17:40:31 +01:00
Felix Nagel
7328333773 Selectmenu: better position handling, fixes issue with wrong styles when using custom positioning 2012-11-29 00:58:28 +01:00
Felix Nagel
36533a718d Merge branch 'master' into selectmenu 2012-11-28 23:29:15 +01:00
Scott González
dec844570f Autocomplete: When appendTo is a jQuery object or a DOM element, don't search against the document. Fixes #8858 - Autocomplete: Fails when appendTo is detached from the DOM. 2012-11-28 10:33:59 -05:00
Scott González
f2854408cc Tooltip: Escape the title attribute so that it's treated as text and not HTML. Fixes #8861 - Tooltip: XSS vulnerability in default content. 2012-11-27 11:21:33 -05:00
Viktor Kojouharov
c5e0961268 Effects: Use $ instead of jQuery in $.effects.animateClass. Fixes #8860 - Effects: Class animation has broken noConflict support. 2012-11-27 08:27:48 -05:00
Scott González
e6e706bbd6 Datepicker: Remove JSHint overrides. 2012-11-27 08:22:21 -05:00
Scott González
7c53af0abc Datepicker: Remove support for setting options via custom attributes. 2012-11-26 22:50:36 -05:00
Fabrício Matté
caacf8f504 Button: Let change handler handle display and aria update. Fixed #5518 - Button: Incorrect state after double click in Firefox 2012-11-26 20:15:53 -05:00
David Petersen
6121683d80 Tabs: Calculate border and padding on tabs container. Fixed #8836: Height overflows parent with heightStyle: 'fill'. 2012-11-26 16:35:07 -05:00
TJ VanToll
0cd470b0d5 Resizable: Modified the default z-index value of resizable handles. Fixed #7960 - Dialog: Modal dialogs do not disable resizables on the page. 2012-11-26 12:42:44 +01:00
Jörn Zaefferer
7e9060c109 Dialog: Extract setting the title into a _title method, use .text() to prevent XSS. Fixes #6016 - Dialog: Title XSS Vulnerability. 2012-11-26 10:28:25 +01:00
Jörn Zaefferer
60486ac632 Dialog: Don't focus dialog when mousedown is on close button. Fixes #8838 - Dialog: Close icon does not work in dialog larger than the window in IE. 2012-11-26 10:28:25 +01:00
Kris Borchers
d179cbaf32 Dialog: Update position when size is changed. Fixes #8789 - Dialog does not close for first click on chrome. 2012-11-26 10:28:25 +01:00
Jörn Zaefferer
ec1f1bde76 Dialog: Follow-up to c77ca67 - exclude button options from properties to create the button. 2012-11-26 10:28:25 +01:00
Jörn Zaefferer
a09f5c07f5 Dialog: Follow-up to 9fe3a62d8 - also deprecate string notation for position option. 2012-11-26 10:28:25 +01:00
Jörn Zaefferer
32a893128d Dialog: Improve _destroy method, detaching dialog content from wrapper instead of appending to body. 2012-11-26 10:28:24 +01:00
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
Felix Nagel
4e68c526ab Selectmenu: removed Position Plugin offset option to fix broken pop-up functionality 2012-11-23 15:38:33 +01:00
Felix Nagel
e25cdd88e7 Merge branch 'master' into selectmenu 2012-11-23 13:49:12 +01: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