Commit Graph

1258 Commits

Author SHA1 Message Date
Дилян Палаузов
827abdfccd
Demos: Optimize PNG files
Optimization done by calling:

    for i in `find -name '*.png'`; do optipng -o7 -zm9 $i; done

Closes gh-2132
2022-12-20 21:50:16 +01:00
DeerBear
455884470c
Demos: Better wording for the purposefully broken tab
Fix both grammar and punctuation in one tabs demo.

Closes gh-2139
2022-12-06 23:27:33 +01:00
Michał Gołębiowski-Owczarek
b53e7beb68 All: Remove deprecated .click() usage in demos/tests 2022-07-14 20:34:29 +02:00
Michał Gołębiowski-Owczarek
70dae67b73
Build: Migrate from JSHint & JSCS to ESLint
Fixes #15393
Closes gh-1958
2021-06-07 00:58:12 +02:00
Michał Gołębiowski-Owczarek
f4ef03e57e
All: Resolve most jQuery Migrate warnings
Closes gh-1919
2020-05-16 08:36:55 +02:00
Michał Gołębiowski-Owczarek
0c860b0d92
All: Remove usage of jQuery positional selectors
jQuery positional selectors () have been deprecated in
[jQuery 3.4.0](https://blog.jquery.com/2019/04/10/jquery-3-4-0-released/)
and they'll be removed in jQuery 4.0.0. This PR removes their usage.

Most of the changes were possible without changing public API. However,
dropping `:even` usage required a change to the
[`header` option](https://api.jqueryui.com/accordion/#option-header)
of the accordion widget. I made it an optional function; this will need
to be documented.

The polyfill for `.even()` & `.odd()` is added for jQuery <3.5.0. There was
no usage of the :odd selector in the code but the `.odd()` method is also
polyfilled for completeness.

Closes gh-1904
2020-01-22 16:44:34 +01:00
Gez Quinn
d193d0ba85 Sortable: Remove reference to .disableSelection() from demos
`.disableSelection()` was deprecated in v1.9:
http://api.jqueryui.com/disableSelection/

Closes gh-1856
2019-12-09 21:13:03 +01:00
Michał Gołębiowski-Owczarek
98b539171b All: Migrate away from deprecated/removed Core APIs
Summary of the changes:

* Build: Add jQuery 3.2.0-3.4.1 to versions UI can be tested against
* Build: Load jQuery & Migrate via HTTPS
* Build: Add package-lock.json to .gitignore
* Build: Update jQuery Migrate from 3.0.0 to 3.1.0
* Build: Allow to run tests against jQuery 3.x-git
* Build: Fix formatting according to JSCS rules
* Build: Disable JSCS for the inlined jQuery Color
* All: Switch from $.isArray to Array.isArray (jQuery.isArray will be
  removed in jQuery 4.0)
* All: Switch from `$.isFunction( x )` to `typeof x === "function"`
  (jQuery.isFunction will be removed in jQuery 4.0)
* All: Inline jQuery.isWindow as it'll be removed in jQuery 4.0
* Effects: Fix a timing issue in a variable declaration. Previously,
  a jQuery object was created, chained & assigned to a variable that
  was then accessed in a callback used inside of this chained
  definition. Due to a timing difference in when the callback fired for
  the first time in latest jQuery master, it was being called before
  the variable was defined.
* Tests: Make dialog & draggable unit tests less strict (newest jQuery
  returns fractional results in some cases, making comparisons fail when
  there's a tiny difference)
* All: Migrate from $.trim to bare String.prototype.trim (jQuery.trim
  will be deprecated in jQuery 3.5)

Closes gh-1901
2019-12-08 22:23:08 +01:00
Scott González
809f29efa7 All: Remove uses of jQuery.proxy()
Ref #15160
Closes gh-1813
2017-05-17 11:17:17 -04:00
Robert Brignull
ceccf507be Demos: Fix a typo with an extra semicolon
Closes gh-1812
2017-05-10 12:32:40 -04:00
Jo Liss
cc37fe76aa Themes: Optimize PNG files with zopflipng
Closes gh-1772
2016-11-29 09:42:36 -05:00
Scott González
f1fa076f62 Tabs: Don't blur focused tab on sort
Fixes #14627
Closes gh-1761
2016-10-12 13:14:28 -04:00
Scott González
69e66ea655 Autocomplete: Escape HTML tags in callback name to avoid XSS in demo
Fixes #15048
2016-09-22 07:53:22 -04:00
Scott González
51461d5238 Slider: Add demo for custom handle
Fixes #15023
Closes gh-1740
2016-09-13 08:41:33 -04:00
Scott González
fd81307dd9 Autocomplete: Remove unreachable code in remote demo 2016-09-01 15:56:29 -04:00
Scott González
930934f4d2 Autocomplete: Change JSONP demo to use local data source
Fixes #14974
2016-09-01 15:55:25 -04:00
Ville Skyttä
d7ea031bd3 Demos: Optimize *.png with zopflipng
zopflipng -m, version 1.0.1.

Closes gh-1726
2016-08-24 12:01:45 -04:00
Scott González
3c860f95aa All: Replace non-breaking spaces with regular spaces 2016-06-08 13:03:42 -04:00
Peter Dave Hello
b7d0c701c7 All: Optimize png images losslessly using zopflipng
Closes gh-1710
2016-06-06 11:26:06 -04:00
Alexander Schmitz
7d5e6d2496 Controlgroup: Fix rendering of labels
Fixes #14967
Closes gh-1703
2016-05-26 09:15:48 -04:00
Anne-Gaelle Colom
cde7a79b8f Selectmenu: Added missing semicolon
Closes gh-1689
2016-03-30 09:20:40 -04:00
Scott González
58d8b17fe3 Controlgroup: Fix quote style in demo 2016-02-16 10:22:30 -05:00
Scott González
0cc197a421 Draggable: Change element ids in demo 2015-11-09 09:51:21 -05:00
Jörn Zaefferer
11216554fe Demos: Link widget demo to learn site
Ref jquery/jqueryui.com#39
Closes gh-1637
2015-10-30 11:51:27 -04:00
Jörn Zaefferer
b58ad12a68 Demos: Replace with ffb33daa229c62c7095cff39cde034f84ef54b15 2015-10-08 14:02:59 -04:00
Jörn Zaefferer
42daa77f90 Controlgroup: Update toolbar demo to warn about "this is just a demo" 2015-10-08 14:02:58 -04:00
Alexander Schmitz
4acdfa14b2 Controlgroup: Address review comments 2015-10-08 14:02:57 -04:00
Alexander Schmitz
344ce3c87c Checkboxradio: Address review comments 2015-10-08 14:02:57 -04:00
Alexander Schmitz
197061be56 Button: address review comments 2015-10-08 14:02:57 -04:00
Alexander Schmitz
50a7a3d6a9 Controlgroup: Fixes for spinner 2015-10-08 14:02:47 -04:00
Alexander Schmitz
3330634c4e Controlgroup: fixup for spinner and label 2015-10-08 14:02:47 -04:00
Alexander Schmitz
6c1390dc0d Controlgroup: Add controlgroup labels 2015-10-08 14:02:47 -04:00
Alexander Schmitz
77be50d7a6 Controlgroup: Add spinner to widgets controlgroup works with 2015-10-08 14:02:46 -04:00
Alexander Schmitz
f6879fc0f5 Controlgroup: Fix headers and demos 2015-10-08 14:02:36 -04:00
Alexander Schmitz
a00c02513d Controlgroup: Add missing entry to demos bootstrap 2015-10-08 14:02:36 -04:00
Alexander Schmitz
de1296b985 Controlgroup: add demos to bootstrap 2015-10-08 14:02:36 -04:00
Alexander Schmitz
29bc0503a3 Demos: Add checkboxradio to bootstrap 2015-10-08 14:02:35 -04:00
Alexander Schmitz
a8fa502853 Checkboxxradio: Adjust demo headers 2015-10-08 14:02:35 -04:00
Alexander Schmitz
16abde399d Spinner: Updates for new button widget and classes option 2015-10-08 14:02:35 -04:00
Alexander Schmitz
40a9d1dfdb Controlgroup: Inital commit of new widget
This widget replaces the buttonset widget
2015-10-07 10:57:59 -04:00
Alexander Schmitz
25d0c85718 Checkboxradio: Initial commit of new widget 2015-10-07 10:57:59 -04:00
Alexander Schmitz
02033262ee Button: Initial commit of button re-factor
Move to using element stats rather then js class states remove
ui-button-text spans.
Removed button set
2015-10-07 10:57:59 -04:00
Jörn Zaefferer
b698f809de Tests: Use demo bootstrap for visual tests
Adds a data-composite option and fixes paths for effects. Otherwise
just applies the same conversion as already applied to demos, sometimes
moving a <style> element to the right place.
2015-09-30 17:55:20 +02:00
Jörn Zaefferer
c02f59981f Tooltip: Turn of collision detection on forms demo for mobile rendering
Slighly improves the result by avoiding the tooltip ending up on top of
the input.
2015-09-30 17:07:39 +02:00
Jörn Zaefferer
5cbb419f24 Demos: Add device-width viewport meta to all demos
Ref 343c265172
2015-09-30 17:07:38 +02:00
Jörn Zaefferer
29d288b8f2 Demos: Remove use of disableSelection() in widget demo, no need
Ref 4916487440
2015-09-21 13:14:20 +02:00
Jörn Zaefferer
cfe91fd9e2 Demos: Add missing disable-selection dependency in sortable-ish demos
Ref 4916487440
Ref #9647
2015-09-21 13:13:42 +02:00
Alexander Schmitz
c9fbb763ab Demos: Style updates
Ref #14246
Ref gh-1588
2015-08-21 08:06:24 -04:00
Alexander Schmitz
b5f0fae57a Widget: Style updates
Ref #14246
Ref gh-1588
2015-08-21 08:06:24 -04:00
Alexander Schmitz
de242d8ca9 Effects: Style updates
Ref #14246
Ref gh-1588
2015-08-21 08:06:24 -04:00