mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
* Extend web_widget_slick widget to open web_widget_darkroom modal and update selected carousel image on close * Override _slickRender method from web_widget_slick to add data attribute w/ record id * Change cursor to pointer on slickroom images * Disable features in read-only mode * Keep default cursor * Prevent modal from opening * Add tests [IMP] web_widget_slickroom: Make requested changes * Use jquery .data instead of .attr for image record IDs * Add explicit img selector when finding images by record ID * Remove svg version of icon
26 lines
973 B
XML
26 lines
973 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright 2017 LasLabs Inc.
|
|
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->
|
|
|
|
<odoo>
|
|
<template id="assets_slickroom" inherit_id="web.assets_backend">
|
|
<xpath expr="//script[last()]" position="after">
|
|
<link rel="stylesheet"
|
|
type="text/less"
|
|
href="/web_widget_slickroom/static/src/less/web_widget_slickroom.less"
|
|
/>
|
|
<script type="application/javascript"
|
|
src="/web_widget_slickroom/static/src/js/web_widget_slickroom.js"
|
|
/>
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="qunit_suite" inherit_id="web.qunit_suite">
|
|
<xpath expr="//t[@t-set='head']" position="inside">
|
|
<script type="application/javascript"
|
|
src="/web_widget_slickroom/static/tests/js/web_widget_slickroom.js"
|
|
/>
|
|
</xpath>
|
|
</template>
|
|
</odoo>
|