Skip to Content
Menu
This question has been flagged
1 Reply
1831 Views

I was developing an odoo theme but for some reason my js is not triggering when a user is not logged in


odoo.define('n_theme.jq_website', function (require) {
'use strict';
     alert('on_website');
     $(".nav.navbar-nav").after('<ul class="nav_right ml-auto text-right"> </ul>');
     $(".nav-item.dropdown").detach().appendTo($('.nav_right'));
     $(".nav-item.dropdown").after('<ul class="trial"> 14 days</ul>');
     $(".nav.navbar-nav").removeClass('ml-auto text-right');
     $(".nav.navbar-nav").addClass('offcanvas-collapse');
    
     $(".navbar-toggler.collapsed").data('toggle','offcanvas');


})
 
Avatar
Discard
Author Best Answer
inherit_id="website.assets_editor" to inherit_id="website.assets_frontend"

https://stackoverflow.com/questions/62590503/js-is-not-triggering-when-a-user-is-not-logged-in-odoo-13

Avatar
Discard
Related Posts Replies Views Activity
0
Feb 21
3336
1
Jul 20
3741
3
Dec 19
5312
1
Nov 22
2121
1
Jun 22
2684