Skip to content

chore: Upgrade jQuery UI assets to 1.14.2#1120

Closed
labmecanicatec wants to merge 1 commit intoLibreBooking:developfrom
labmecanicatec:jQueryUI_Update
Closed

chore: Upgrade jQuery UI assets to 1.14.2#1120
labmecanicatec wants to merge 1 commit intoLibreBooking:developfrom
labmecanicatec:jQueryUI_Update

Conversation

@labmecanicatec
Copy link
Collaborator

Remove legacy jQuery UI 1.12.1 assets (images, minified CSS/JS, metadata) and add jQuery UI 1.14.2 assets (minified CSS, JS, images, metadata). Also update tpl/globalheader.tpl to reference the new/updated UI assets (adjusted paths/markup as needed). This updates the bundled jQuery UI to a newer patch release and cleans up the old files.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Upgrades the bundled jQuery UI assets used by the web UI from the legacy 1.12.1 set to 1.14.2, and updates the global header template to reference the new versioned paths (local and CDN).

Changes:

  • Switch tpl/globalheader.tpl jQuery UI JS/CSS includes from 1.12.1 to 1.14.2 (local vendor + code.jquery.com CDN).
  • Add jQuery UI 1.14.2 vendor assets (minified JS/CSS, images, metadata).
  • Remove jQuery UI 1.12.1 vendor assets (minified JS/CSS, images, metadata).

Reviewed changes

Copilot reviewed 1 out of 45 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tpl/globalheader.tpl Updates jQuery UI include paths to 1.14.2 (local + CDN) and minor markup formatting.
Web/assets/vendor/jquery-ui/1.14.2/metadata.json Adds metadata for the new bundled jQuery UI version.
Web/assets/vendor/jquery-ui/1.14.2/js/jquery-ui.1.14.2.min.js Adds the new jQuery UI 1.14.2 minified JS bundle.
Web/assets/vendor/jquery-ui/1.14.2/css/jquery-ui.1.14.2.min.css Adds the new jQuery UI 1.14.2 minified theme CSS referencing the new image assets.
Web/assets/vendor/jquery-ui/1.14.2/css/images/ui-icons_cd0a0a_256x240.png Adds jQuery UI 1.14.2 theme icon sprite.
Web/assets/vendor/jquery-ui/1.14.2/css/images/ui-icons_888888_256x240.png Adds jQuery UI 1.14.2 theme icon sprite.
Web/assets/vendor/jquery-ui/1.14.2/css/images/ui-icons_454545_256x240.png Adds jQuery UI 1.14.2 theme icon sprite.
Web/assets/vendor/jquery-ui/1.14.2/css/images/ui-icons_2e83ff_256x240.png Adds jQuery UI 1.14.2 theme icon sprite.
Web/assets/vendor/jquery-ui/1.14.2/css/images/ui-icons_222222_256x240.png Adds jQuery UI 1.14.2 theme icon sprite.
Web/assets/vendor/jquery-ui/1.14.2/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png Adds jQuery UI 1.14.2 theme background image.
Web/assets/vendor/jquery-ui/1.14.2/css/images/ui-bg_glass_95_fef1ec_1x400.png Adds jQuery UI 1.14.2 theme background image.
Web/assets/vendor/jquery-ui/1.14.2/css/images/ui-bg_glass_75_e6e6e6_1x400.png Adds jQuery UI 1.14.2 theme background image.
Web/assets/vendor/jquery-ui/1.14.2/css/images/ui-bg_glass_75_dadada_1x400.png Adds jQuery UI 1.14.2 theme background image.
Web/assets/vendor/jquery-ui/1.14.2/css/images/ui-bg_glass_65_ffffff_1x400.png Adds jQuery UI 1.14.2 theme background image.
Web/assets/vendor/jquery-ui/1.14.2/css/images/ui-bg_glass_55_fbf9ee_1x400.png Adds jQuery UI 1.14.2 theme background image.
Web/assets/vendor/jquery-ui/1.12.1/metadata.json Removes legacy jQuery UI 1.12.1 metadata.
Web/assets/vendor/jquery-ui/1.12.1/js/jquery-ui.1.12.1.custom.min.js Removes legacy jQuery UI 1.12.1 minified JS bundle.
Web/assets/vendor/jquery-ui/1.12.1/css/jquery-ui.1.12.1.custom.min.css Removes legacy jQuery UI 1.12.1 minified theme CSS.
Web/assets/vendor/jquery-ui/1.12.1/css/images/ui-icons_ffffff_256x240.png Removes legacy jQuery UI 1.12.1 image asset.
Web/assets/vendor/jquery-ui/1.12.1/css/images/ui-icons_ffd27a_256x240.png Removes legacy jQuery UI 1.12.1 image asset.
Web/assets/vendor/jquery-ui/1.12.1/css/images/ui-icons_ef8c08_256x240.png Removes legacy jQuery UI 1.12.1 image asset.
Web/assets/vendor/jquery-ui/1.12.1/css/images/ui-icons_cd0a0a_256x240.png Removes legacy jQuery UI 1.12.1 image asset.
Web/assets/vendor/jquery-ui/1.12.1/css/images/ui-icons_888888_256x240.png Removes legacy jQuery UI 1.12.1 image asset.
Web/assets/vendor/jquery-ui/1.12.1/css/images/ui-icons_454545_256x240.png Removes legacy jQuery UI 1.12.1 image asset.
Web/assets/vendor/jquery-ui/1.12.1/css/images/ui-icons_2e83ff_256x240.png Removes legacy jQuery UI 1.12.1 image asset.
Web/assets/vendor/jquery-ui/1.12.1/css/images/ui-icons_228ef1_256x240.png Removes legacy jQuery UI 1.12.1 image asset.
Web/assets/vendor/jquery-ui/1.12.1/css/images/ui-icons_222222_256x240.png Removes legacy jQuery UI 1.12.1 image asset.
Web/assets/vendor/jquery-ui/1.12.1/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png Removes legacy jQuery UI 1.12.1 image asset.
Web/assets/vendor/jquery-ui/1.12.1/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png Removes legacy jQuery UI 1.12.1 image asset.
Web/assets/vendor/jquery-ui/1.12.1/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png Removes legacy jQuery UI 1.12.1 image asset.
Web/assets/vendor/jquery-ui/1.12.1/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png Removes legacy jQuery UI 1.12.1 image asset.
Web/assets/vendor/jquery-ui/1.12.1/css/images/ui-bg_glass_95_fef1ec_1x400.png Removes legacy jQuery UI 1.12.1 image asset.
Web/assets/vendor/jquery-ui/1.12.1/css/images/ui-bg_glass_75_e6e6e6_1x400.png Removes legacy jQuery UI 1.12.1 image asset.
Web/assets/vendor/jquery-ui/1.12.1/css/images/ui-bg_glass_75_dadada_1x400.png Removes legacy jQuery UI 1.12.1 image asset.
Web/assets/vendor/jquery-ui/1.12.1/css/images/ui-bg_glass_65_ffffff_1x400.png Removes legacy jQuery UI 1.12.1 image asset.
Web/assets/vendor/jquery-ui/1.12.1/css/images/ui-bg_glass_55_fbf9ee_1x400.png Removes legacy jQuery UI 1.12.1 image asset.
Web/assets/vendor/jquery-ui/1.12.1/css/images/ui-bg_glass_100_fdf5ce_1x400.png Removes legacy jQuery UI 1.12.1 image asset.
Web/assets/vendor/jquery-ui/1.12.1/css/images/ui-bg_glass_100_f6f6f6_1x400.png Removes legacy jQuery UI 1.12.1 image asset.
Web/assets/vendor/jquery-ui/1.12.1/css/images/ui-bg_flat_75_ffffff_40x100.png Removes legacy jQuery UI 1.12.1 image asset.
Web/assets/vendor/jquery-ui/1.12.1/css/images/ui-bg_flat_10_000000_40x100.png Removes legacy jQuery UI 1.12.1 image asset.
Web/assets/vendor/jquery-ui/1.12.1/css/images/ui-bg_flat_0_aaaaaa_40x100.png Removes legacy jQuery UI 1.12.1 image asset.
Web/assets/vendor/jquery-ui/1.12.1/css/images/ui-bg_diagonals-thick_20_666666_40x40.png Removes legacy jQuery UI 1.12.1 image asset.
Web/assets/vendor/jquery-ui/1.12.1/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png Removes legacy jQuery UI 1.12.1 image asset.
Web/assets/vendor/jquery-ui/1.12.1/css/images/animated-overlay.gif Removes legacy jQuery UI 1.12.1 image asset.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines 18 to 20
{vendor_js src="jquery-migrate/3.6.0/jquery-migrate-3.6.0.min.js"}
{vendor_js src="jquery-ui/1.12.1/js/jquery-ui.1.12.1.custom.min.js"}
{vendor_js src="jquery-ui/1.14.2/js/jquery-ui.1.14.2.min.js"}
{vendor_js src="bootstrap/5.3.3/js/bootstrap.bundle.min.js"}
Copy link

Copilot AI Mar 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new jQuery UI vendor directory includes an extra Windows Mark-of-the-Web file (Web/assets/vendor/jquery-ui/1.14.2/css/jquery-ui.min.css:Zone.Identifier with [ZoneTransfer] ZoneId=3). This isn’t a real asset and should be removed before merge to avoid shipping OS metadata / audit noise; re-download/strip ADS so it doesn’t get committed again.

Copilot uses AI. Check for mistakes.
@JohnVillalovos
Copy link
Collaborator

What do you think about adding the source map file and the unminified JS?

Also are we sure that this is compatible with jQuery 3.3.1? Should we upgrade jQuery first?

{/if}
{else}
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css" type="text/css" />
<link rel="stylesheet" href="https://code.jquery.com/ui/1.14.2/themes/smoothness/jquery-ui.css" type="text/css" />
Copy link
Collaborator

@JohnVillalovos JohnVillalovos Mar 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some AI review feedback.

The CDN CSS link for jQuery UI lacks a Subresource Integrity attribute:

  <!-- Missing integrity= and crossorigin= -->
  <link rel="stylesheet" href="https://code.jquery.com/ui/1.14.2/themes/smoothness/jquery-ui.css" type="text/css" />

The CDN JS link correctly has an integrity hash. The CSS should too. This was also missing in the old 1.12.1 link, but since this commit touches this line, it's a good time to fix it.

The SRI hash can be generated with:

curl -s https://code.jquery.com/ui/1.14.2/themes/smoothness/jquery-ui.css | openssl dgst -sha384 -binary | openssl base64 -A

Remove legacy jQuery UI 1.12.1 assets (images, minified CSS/JS, metadata) and add jQuery UI 1.14.2 assets (minified CSS, JS, images, metadata). Also update tpl/globalheader.tpl to reference the new/updated UI assets (adjusted paths/markup as needed). This updates the bundled jQuery UI to a newer patch release and cleans up the old files.
@labmecanicatec labmecanicatec deleted the jQueryUI_Update branch March 8, 2026 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants