I have a button:
Code:
Then in my javascript I have the following:
Code:
Read more
Читать далее...
Code:
Код:
<xf:button href="TEST_LINK" class="button--cta TEST_JS">
TEST_BUTTON
</xf:button>
Then in my javascript I have the following:
Code:
Код:
XF.Element.register('TEST_JS', 'TEST.ClickButton');
TEST.ClickButton = XF.Element.newHandler(
{
init: function()
{
XF.on(this.target, 'click', this.click.bind(this));
},
click: function(e)
{
e.preventDefault()...
Read more
Читать далее...