summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2018-03-21 13:02:50 +0100
committerRomain Derie <rde@odoo.com>2018-03-21 14:18:45 +0100
commit321486851a6e50198ea1159ae1ed3a8e53a8ebb0 (patch)
tree113866cfc8cefefd06b1e10130c73ae8542f2314 /addons/web/static/src/js/views/basic
parentd9869de690c28c460b36ec1540410a936acc1cb6 (diff)
[FIX] web_editor: correctly set image on double click
Commit e011d58bee add the possibility to unselect images on the media dialog. But it introduced a collateral bug preventing double click to set the image. Indeed, double click event triggers not only the double click event but also twice the single click event. Before commit e011d58bee, it would work fine and as intented on double click: 1. It would trigger twice the single click, selecting twice the image. 2. Then, it would trigger the double click that would save the selected image. But after the commit: 1. It triggers twice the single click, selecting and then deselecting the image. 2. Then, it triggers the double click that saves nothing since the image got unselected on second single click event. Now, before saving on double click event, we select the image. task-1815165
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions