Details
-
Type:
New Feature
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 7.0
-
Fix Version/s: 7.1-milestone-1
-
Component/s: Web - Templates & Resources
-
Labels:None
-
Tests:Integration
-
Difficulty:Medium
-
Documentation in Release Notes:
-
Similar issues:
Description
We have JavaScript widgets that have been written using Prototype.js and which listen to custom events. For instance the date picker listens to the xwiki:dom:updated event and re-initializes the date text input elements that have been replaced. Rewriting all these widgets with something based on jQuery (or a full fledged framework) is a lengthy process and until it's done we should be able to trigger these events from jQuery code.
require(['jquery', 'xwiki-events-bridge'], function($) { $(document).trigger('xwiki:dom:updated', {'elements': $('.some-container').toArray()}); });
Attachments
Issue Links
- is related to
-
XWIKI-11676 Add support for catching XWiki's custom Prototype.js events in jQuery
-
- Closed
-