Using the svgcheckbox.js ( http://tympanus.net/Development/AnimatedCheckboxes/ ) for animations in form inputs, the script is called but doesn't work. Radio and checkbox don't are animated.
Conflict? in view-source, the script is correct:
<script type="text/javascript" src="/mod/myPlugin/js/svgcheckbx.js"></script>
<link rel="stylesheet" href="/mod/myPlugin/css/component.css" type="text/css" />
The same files works in fiddle: http://jsfiddle.net/xbm4p/
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.
- Marcelo de Andrade@marceloandrade0201
Marcelo de Andrade - 0 likes
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- Marcelo de Andrade@marceloandrade0201
Marcelo de Andrade - 0 likes
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- Marcelo de Andrade@marceloandrade0201
Marcelo de Andrade - 0 likes
- Brett@brett.profitt
Brett - 0 likes
- Team Webgalli@webgalli
Team Webgalli - 0 likes
- Marcelo de Andrade@marceloandrade0201
Marcelo de Andrade - 0 likes
You must log in to post replies.Problem solved.
Add the script <script type="text/javascript" src="/mod/myPlugin/js/svgcheckbx.js"></script> in footer and JS is load normally.
Just register your JS:
RvR, i do it but doens't work. The param 'footer' make the elgg_register_js functiona invalid.
Did you loaded this JS:
?
Read more on http://docs.elgg.org/wiki/Javascript/Extending
If 'yes' then it's weird, or there are conflicts in your theme/plugins...
I do...
in start.php: elgg_register_js('svgcheckbx', 'mod/myPlugin/js/svgcheckbx.js', 'footer');
in file: elgg_load_js('svgcheckbx');
when the param 'footer' is removed, works normally. :/
i read the docs, but is incomplete. thank you
Do you have a plugin that overides the page/elements/foot view?
Also check your browser console for any error messages when loading the js in footer.
@Brett
Yes, i developed a plugin that change the footer.
@Team Webgalli
Console checked and errors not displayed
anyway, the problem is solved.