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

Hi,


How is it possible to speed up the carousel used as a snippet in Odoo?

The code is here : https://github.com/odoo/odoo/blob/8.0/addons/website/static/src/js/website.snippets.animation.js#L72

Any tips for overriding this part?


regards

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

You change value in this line:

this.$target.carousel({interval: 10000}); 

 Tips here

อวตาร
ละทิ้ง
ผู้เขียน

Actualy, it's not safe. I have to override but do I have to override all the code?

Not all code. New classes are defined by calling the extend() method. See section Class in Tips and more examples http://ejohn.org/blog/simple-javascript-inheritance/