diff options
| author | Jeremy Kersten <jke@odoo.com> | 2016-09-14 16:47:07 +0200 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2016-09-21 21:29:18 +0200 |
| commit | f0463a3e1dcc12f3ff7c9c4f24295ad7dd46760e (patch) | |
| tree | 9a3f29f286a2b260b5624d159ad8945574428fb0 /addons/website/static/src/js/website.js | |
| parent | fd36e5ceda035d6ac9efcc221bc6190169eae5ce (diff) | |
[IMP] web_editor, website, website_sale: add zoom option for t-field image
web_editor Qweb: Add 'zoom' option for widget image
<span t-field="product.image_small" t-options="{'widget': 'image', 'zoom': 'image_medium'}" />
website: Add Zoom code to be standard for all website module
website_sale: add zoom on Main product image
Diffstat (limited to 'addons/website/static/src/js/website.js')
| -rw-r--r-- | addons/website/static/src/js/website.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/website/static/src/js/website.js b/addons/website/static/src/js/website.js index 1e2cf2ddb90..046da64ccf7 100644 --- a/addons/website/static/src/js/website.js +++ b/addons/website/static/src/js/website.js @@ -266,6 +266,9 @@ odoo.define('website.website', function (require) { } }); + // enable magnify on zommable img + $('.zoomable img[data-zoom]').zoomOdoo(); + Dialog.include({ init: function () { this._super.apply(this, arguments); |
