What to replace elgg.provide() ?
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
AMD Modules http://learn.elgg.org/en/stable/guides/javascript.html
Hello Jerome !
I have read but cannot figure out which module should be used for this code
Might work. Save the following as /views/default/js/blogvideocover.js
and then add in the form view at the beginning
elgg_require_js('blogvideocover');
No promise that it works though! The point is: you have to write the AMD module yourself, i.e. rewrite the existing JS code as an AMD module. With the AMD module you also don't need to use elgg_extend_view anymore to load the module because this is done explicitely with elgg_require_js within the view (and only this view) requiring the JS code to be avaiable.
iionly thank you very much for your help
No guarantee it will work. Might still contain bugs you have to fix. One bug is that you need to change
into