summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/jquery.mjs.nestedSortable
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2019-11-15 13:38:07 +0000
committerNicolas Lempereur <nle@odoo.com>2019-11-25 18:10:30 +0000
commit1c47f2070b76ee6c06d0c65e6a3cfc7c1ccdfbfb (patch)
treed1ca7f8287f32ea3908c0d08590079c8387be76f /addons/web/static/lib/jquery.mjs.nestedSortable
parent70d856f2c7c0ba8358af86a243ee4b872e057e2b (diff)
[FIX] web_editor: update attribute of edition container
In most use case, when we edit the website we have a situation such as: ``` <div id="wrap" branding-attributes="..."> <section class="mycontent">hi!</section> </div> ``` When we modify a part, we replace all child nodes of the branded element. But if we had more complex content such as: ``` <div id="wrap"> <section class="mycontent" branding-attributes="...">ho!</section> <t t-call-assets="web.assets_common" t-js="false" t-css="false"/> </div> ``` we have a t-call inside the div#wrap, so branding is distributed to child that could have attribute modified (eg. changing background). Then if `<section/>` node is saved, the possibly modified attributes are lost. Without the change, the added test fails with: '<div class="nice">hoi</div>' not found in '...<div>hoi</div>...' : saved element attributes are saved excluding branding ones opw-2122947 closes #40345 closes odoo/odoo#40830 X-original-commit: 71b20a24c40ae9daa10076ab0fd656b043819cff Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons/web/static/lib/jquery.mjs.nestedSortable')
0 files changed, 0 insertions, 0 deletions