Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
27927 Näkymät

 

Is it possible to change browser recognition by the generated website. We have a problem with one customer who uses Internet Explorer 8 and sees our homepage in a cellphone-like layout on the desktop computers.

Actually, the odoo.com webpage has the same problem.

Edit:

After some research I think that the integration of the java script respond.js could solve the problem. but i am not sure where to integrate it into the odoo generated website.

Respond.js is found here: https://github.com/scottjehl/Respond -the script was copied and put into addons/website/static/src/js/respond.js - right?

Is addons/website/views/website_templates.xml the right place to insert the link to the script?

<script type="text/javascript" src="/web/static/src/js/watch.js"/>

<script type="text/javascript" src="/website/static/src/js/website.js"/>

<script type="text/javascript" src="/website/static/src/js/respond.js"/>

<script type="text/javascript" src="/website/static/src/js/website.snippets.animation.js"/>

<script type="text/javascript" src="/web/static/lib/bootstrap/js/bootstrap.js"/>

Server Restart.

Nothing changed - what more to do to set it active? Do I have to call the script somewhere? 

Thanks in advance. A little push could help me a lot. Tobi

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
maalisk. 15
3603
1
kesäk. 24
4381
1
jouluk. 22
18723
2
maalisk. 22
10039
1
huhtik. 21
5065