[FIX] web: Fix the zoom image stick top on search of employee.
Currently, the Employee picture stays on top of the card of the employee we're looking for. The image does not disappear after a search is validated. Steps to reproduce: >> On employee kanban focus cursor on search panel, then mouse over to employee image so it will be zoomed, now without mouse leave just type in the search panel and enter, the big zoomed image stuck on screen and don't even know how to make it go away. So in this commit, We fix that on keudown hide the zoom image so when user search on search panel it will hide the zoom image. OnShow of zoom bind the generic even keydown and on that just hide the image so it should not stick on screen. TaskID : 2212808 Closes : #48253 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
committed by
Barad Mahendra
parent
babbe363b6
commit
04af701f76
@@ -1824,6 +1824,7 @@ var FieldBinaryImage = AbstractFieldBinary.extend({
|
||||
if(this.$zoom.height() < 256 && this.$zoom.width() < 256) {
|
||||
this.hide();
|
||||
}
|
||||
core.bus.on('keydown', this, this.hide);
|
||||
},
|
||||
beforeAttach: function () {
|
||||
this.$flyout.css({ width: '512px', height: '512px' });
|
||||
|
||||
Reference in New Issue
Block a user