Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
27855 Lượt xem

 

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 15
3518
1
thg 6 24
4307
1
thg 12 22
18608
2
thg 3 22
9942
1
thg 4 21
4979