[xwiki/xwiki-platform] 89576e: XWIKI-25157: Limit Prototype.js usage
Branch: refs/heads/master Home: https://github.com/xwiki/xwiki-platform Commit: 89576e8092b6edd107321a90a7a7acf7bcd687a4 https://github.com/xwiki/xwiki-platform/commit/89576e8092b6edd107321a90a7a7a... Author: Marius Dumitru Florea <[email protected]> Date: 2026-10-08 (Thu, 08 Oct 2026) Changed paths: M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/js/xwiki/panelwizard/toolTip.js M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/js/xwiki/viewers/attachments.js M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/js/xwiki/widgets/jumpToPage.js M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/uicomponents/lock/lock.js M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/uicomponents/viewers/tags.js M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/uicomponents/widgets/buttonGroup.js M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/uicomponents/widgets/gallery/gallery.js M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/uicomponents/widgets/list/xlist.js Log Message: ----------- XWIKI-25157: Limit Prototype.js usage * Rewrite XWiki.widgets.XList / XListItem, XWiki.DocumentLock, XWiki.widgets.JumpToPage, XWiki.viewers.Tags, XWiki.widgets.ButtonGroup / DynamicButtonGroup and XWiki.Gallery as plain ES classes, keeping their API; they can still be extended with Prototype.js' Class.create() * Use fetch instead of Ajax.Request for the tag and lock requests; the tag request errors replace the in-progress notification * Listen to xwiki:dom:updated and xwiki:docextra:loaded with jQuery (through the events bridge) in the button group, gallery and attachments code * Stop using Prototype.js in the attachments viewer and in the panel wizard tooltip * Display the tag and attachment notifications with XWiki.widgets.Notification.show() * Serialize the server-side values injected in the tag and button group JavaScript code with $jsontool, so that translations with new lines or quotes don't break it Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications