Is there a way to remove or override base js files asseted. i want to disable some file thanks
Этот вопрос был отмечен
1
Ответить
10294
Представления
Yes, you can just inherit web.assets_backend and xpath target what want to remove.
Like this :
<template id="assets_common" inherit_id="web.assets_common">
<xpath expr="script[@src='/password_security/static/src/js/password_gauge.js']" position="replace"/>
<xpath expr="script[@src='/password_security/static/lib/zxcvbn/zxcvbn.min.js']" position="replace"/>
</template>
thank you!
Не оставайтесь в стороне – присоединяйтесь к обсуждению!
Создайте аккаунт сегодня, чтобы получить доступ к эксклюзивным функциям и стать частью нашего замечательного сообщества!
Регистрация| Похожие посты | Ответы | Просмотры | Активность | |
|---|---|---|---|---|
|
|
1
июн. 23
|
4008 | ||
|
|
1
мая 23
|
3871 | ||
|
|
1
окт. 22
|
6269 | ||
|
|
2
июл. 22
|
5495 | ||
|
|
0
мая 20
|
4680 |