Details
-
New Feature
-
Resolution: Fixed
-
Major
-
6.4-rc-1
-
None
Description
We have JavaScript widgets that have been written using Prototype.js and which send custom events. For instance the suggest input fires an event 'xwiki:suggest:selected'. Replacing all these widgets with something based on jQuery (or a full fledged framework like Angular) is a lengthy process and until it's done we should be able to catch these events from jQuery code.
require(['jquery', 'xwiki-events-bridge'], function($) { $('.suggest-input').on('xwiki:suggest:selected', function(event, data) { console.log('Selected: ' + data.info); }); });
Attachments
Issue Links
- relates to
-
XWIKI-11956 Source tab not working on IE8
- Closed
-
XWIKI-11954 JavaScript error when pressing Cancel button on IE8
- Closed
-
XWIKI-11955 WYSIWYG Editor is not functionable on IE8
- Closed
-
XWIKI-17178 jQuery event listeners registered directly on the event target are not called when the event is stop from Prototype.js
- Closed
-
XWIKI-12038 Add support for triggering XWiki's custom Prototype.js events from jQuery
- Closed