I've added the following elements to the client\res\templates\site\footer.tpl template:
However, when I add the following Javascript to client\src\views\site\footer.js, I find that it never executes:
I've tried clearing the cache, I've inspected using Google Chrome developer tools (I'm working with isDeveloperMode => true) however the alert is never displayed.
What am I missing?
Code:
<div class="scroll-to-top"> <i class="icon-arrow-up"></i> </div>
Code:
Espo.define('views/site/footer', 'view', function (Dep) { return Dep.extend({ template: 'site/footer', events: { 'click .scroll-to-top': function (e) { alert('clicked'); } } }); });
What am I missing?
Comment