summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml/website.contentMenu.xml
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2019-10-30 17:07:37 +0000
committerqsm-odoo <qsm@odoo.com>2019-11-06 12:25:38 +0000
commit5c007305c9998ade32c6677cac5552101c3a96af (patch)
treefeff4be6dec268e9e304cf7e9cacc6bdc534d9e4 /addons/website/static/src/xml/website.contentMenu.xml
parentb2a2d0a73055cb3a7cc2fb823d399407019fac9f (diff)
[REF] web_editor: review overlay/option toggling
Previously, when trying to enable a snippet overlay & options, the 'toggleFocus' method was called. Now the logic is separated for overlay and options toggling so that we stop calling onFocus/onBlur method of parent options when only a child snippet is being enabled. For example, for a section with two columns inside, we had this behavior before this commit: 1) Click on first column 2) -> the section's onFocus is called 3) -> the first column's onFocus is called 4) Click on second column 5) -> the section's onBlur is called 6) -> the first column's onBlur is called 7) -> the section's onFocus iscalled 8) -> the second column's onFocus is called 9) Click on another snippet 10) -> the section's onBlur is called 11) -> the second column's onBlur is called Now, steps 5 and 7 are gone. Related to https://github.com/odoo/odoo/pull/38997 Related to task-2090180
Diffstat (limited to 'addons/website/static/src/xml/website.contentMenu.xml')
0 files changed, 0 insertions, 0 deletions