[IMP] web: Add zoom on employee avatar

This commit enables the zoom on mobile.

To avoid any issue in website, we first only activate it in the backend.
Note that it's not, strictly speaking, a zoom. It only shows the
original size of the picture.

Steps to reproduce:
* Open Employee
* Select an employee
* Touch on the photos

closes odoo/odoo#75785

Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
This commit is contained in:
Romeo Fragomeli
2021-09-01 07:17:55 +00:00
parent 0e7b58a439
commit 36495ef59d
@@ -2198,6 +2198,7 @@ var FieldBinaryImage = AbstractFieldBinary.extend({
timer: zoomDelay,
attach: '.o_content',
attachToTarget: true,
disabledOnMobile: false,
onShow: function () {
var zoomHeight = Math.ceil(this.$zoom.height());
var zoomWidth = Math.ceil(this.$zoom.width());