Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
27335 มุมมอง

 

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 15
3141
1
มิ.ย. 24
3857
1
ธ.ค. 22
18143
2
มี.ค. 22
9463
1
เม.ย. 21
4565