Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2550 Widoki

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');


})
 
Awatar
Odrzuć
Autor Najlepsza odpowiedź
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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lut 21
4178
1
lip 20
4649
3
gru 19
6435
1
lis 22
2774
1
cze 22
3532