Re: JavaScript within Custom Modules
If you use any JS with curly brackets in custom module you need to wrap it in {literal}...{/literal}
Smarty block as modules get parsed as Smarty syntax by default (and then the parser thinks it is some Smarty block or function), not as the wiki syntax... You can also use instead of
Copy to clipboard
{JQ()}...{JQ}
Copy to clipboard
{jq}...{/jq}
or simply the plain old HTML script tags.