Details
-
New Feature
-
Resolution: Fixed
-
Major
-
7.0
-
None
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