Commit Graph

1269 Commits

Author SHA1 Message Date
Timmy Willison
f068bf4509
Demos: remove 404 scripts from removeClass demo
Some checks failed
Filestash / Update Filestash (push) Has been cancelled
Node / ${{ matrix.BROWSER }} | ${{ matrix.JQUERYS.name }} (chrome, map[name:jQuery git versions:--jquery git --jquery 3.x-git]) (push) Has been cancelled
Node / ${{ matrix.BROWSER }} | ${{ matrix.JQUERYS.name }} (chrome, map[name:jQuery stable versions:--jquery 3.7.1 --jquery 3.6.4 --jquery 2.2.4 --jquery 1.12.4]) (push) Has been cancelled
Node / ${{ matrix.BROWSER }} | ${{ matrix.JQUERYS.name }} (firefox, map[name:jQuery git versions:--jquery git --jquery 3.x-git]) (push) Has been cancelled
Node / ${{ matrix.BROWSER }} | ${{ matrix.JQUERYS.name }} (firefox, map[name:jQuery stable versions:--jquery 3.7.1 --jquery 3.6.4 --jquery 2.2.4 --jquery 1.12.4]) (push) Has been cancelled
Node / edge | ${{ matrix.JQUERYS.name }} (map[name:jQuery git versions:--jquery git --jquery 3.x-git]) (push) Has been cancelled
Node / edge | ${{ matrix.JQUERYS.name }} (map[name:jQuery stable versions:--jquery 3.7.1 --jquery 3.6.4 --jquery 2.2.4 --jquery 1.12.4]) (push) Has been cancelled
Node / safari | ${{ matrix.JQUERYS.name }} (map[name:jQuery git versions:--jquery git --jquery 3.x-git]) (push) Has been cancelled
Node / safari | ${{ matrix.JQUERYS.name }} (map[name:jQuery stable versions:--jquery 3.7.1 --jquery 3.6.4 --jquery 2.2.4 --jquery 1.12.4]) (push) Has been cancelled
Closes gh-2297
2024-10-03 10:45:18 -07:00
Michał Gołębiowski-Owczarek
b8fff16dc4
Demos: Remove deprecated button APIs
Remove usage of deprecated button options:
* `icons`: https://jqueryui.com/upgrade-guide/1.12/#deprecated-icons-options-in-favor-of-icon-and-iconposition
* `text`: https://jqueryui.com/upgrade-guide/1.12/#deprecated-text-option-in-favor-of-showlabel

Fixes gh-2295
Closes gh-2296
2024-09-30 18:05:22 +02:00
Michał Gołębiowski-Owczarek
36ed9fc3b0
Effect: Remove demos & visual tests of the transfer effect
The transfer effect is deprecated and not present unless `$.uiBackCompat` is set
to `true`. In previous UI versions, the default was including the backwards
compat layer so these demos & tests worked; now they do not by default. Just
remove them.

Fixes gh-2278
Closes gh-2291
2024-09-16 17:16:40 +02:00
Michał Gołębiowski-Owczarek
600057f59c
Demos: Make autocomplete demos work on jqueryui.com
The `jqueryui.com` demos build process deAMDifies HTML files, replacing required
JS files with direct script tags. On the other hand, when running demos locally
from the jQuery UI repository, RequireJS is used.

This used to work fine until we got a new `search.js` file introduced in
gh-2187. The deAMDifying process doesn't touch non-HTML files which made loading
autocomplete demos crash on "require is not a function"

To resolve the issues without a major rearchitecture of the build process,
the `search.js` file now detects AMD and uses `require`, falling back to relying
on the `jQuery` global in the other case.

Closes gh-2274
Ref gh-2187
Ref jquery/jqueryui.com#216
2024-07-30 08:31:10 +02:00
Michał Gołębiowski-Owczarek
03cde342cd
All: Remove the deprecated ui/core.js file
Also, fix checkboxradio visual tests.

Ref gh-2249
2024-05-15 00:38:40 +02:00
Michał Gołębiowski-Owczarek
bb49bd794b
All: Drop support for IE & some other browsers (but mostly IE)
Closes gh-2249
2024-05-15 00:38:40 +02:00
Michał Gołębiowski-Owczarek
4966aea381
Docs: Change a few most common domains from HTTP to HTTPS
Also, update a few stale URLs to what they redirect now to.

Closes gh-2244
2024-04-26 16:25:34 +02:00
mark van tilburg
28895912d7
Update custom_render.html (#2242)
This fixes mixed content errors on the selectmenu demo page at jqueryui.com.

Closes gh-2242
2024-04-25 23:53:11 +02:00
divdeploy
4da7a30ff4
Docs: remove a duplicated "be" in an accordion demo
Closes gh-2233

Signed-off-by: divdeploy <chenguangxue@outlook.com>
2024-04-12 17:12:36 +02:00
Timo Tijhof
604aae1a57
demos: Replace search.php with $.ajaxTransport() mock
Fixes jquery/jqueryui.com#203
Closes gh-2187
2024-01-03 01:31:36 +01:00
Michał Gołębiowski-Owczarek
0977ea1b48 Demos:Tests: Avoid self-closing HTML tags
Self-closing tags are reported by newer versions of the htmllint
Grunt plugin. They also don't make sense in our HTML files
since they are not XHTML-compliant and they run in HTML mode
anyway.

Ref gh-2157
2023-05-10 10:53:57 +02:00
Дилян Палаузов
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