<
From version < 38.1 >
edited by Thomas Mortagne
on 2015/05/04
To version < 40.1 >
edited by Marius Dumitru Florea
on 2015/05/04
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.ThomasMortagne
1 +XWiki.mflorea
Content
... ... @@ -31,10 +31,26 @@
31 31  
32 32  = For Developers =
33 33  
34 -== <developer feature N> ==
34 +== Trigger Prototype Event Listeners from jQuery ==
35 35  
36 -<description of developer feature N>
36 +The event listeners registered from Prototype are now notified when a custom XWiki event is fired using the jQuery API.
37 37  
38 +{{code language="js"}}
39 +// Prototype (old code that you don't have time to rewrite)
40 +document.observe('xwiki:dom:updated', function(event) {
41 + event.memo.elements.each(function(element) {
42 + // Do something.
43 + });
44 +});
45 +...
46 +// jQuery (new code)
47 +require(['jquery', 'xwiki-events-bridge'], function($) {
48 + $(document).trigger('xwiki:dom:updated', {'elements': $('.some-container').toArray()});
49 +});
50 +{{/code}}
51 +
52 +See the [[developer's guide>>platform:DevGuide.JavaScriptAPI||anchor="HBridgingcustomXWikieventsbetweenPrototypeandjQuery"]] for more details.
53 +
38 38  == Deprecated and Retired projects ==
39 39  
40 40  <description of deprecated and retired projects>
... ... @@ -70,6 +70,7 @@
70 70  * The mime type of uploaded attachment is now automatically stored in the database and won't be recalculated each time it's asked. Also a new API has been introduced in ##com.xpn.xwiki.doc.XWikiAttachment## to change it if needed.
71 71  * The ConfigurableClass mechanism now supports adding field hints / descriptions. See the [[documentation>>extensions:Extension.Administration Application||anchor="HFieldsyoucandefine"]].
72 72  * The ##xwiki-platform-legacy-crypto-script## legacy module has been removed as it was conflicting with the Bouncy Castle 1.52 upgrade and we considered that there was little chance that this module was used anywhere in any extension. If by chance (so to speak) you were using it, you'd need to use the newer ##xwiki-platform-crypto-script## module and rebuild your extension with it.
89 +* Added advanced search support to ##org.xwiki.extension.repository.ExtensionRepositoryManager##
73 73  
74 74  == Upgrades ==
75 75  

Get Connected