diff options
| author | qsm-odoo <qsm@odoo.com> | 2016-11-14 17:08:30 +0100 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2016-11-14 17:32:23 +0100 |
| commit | 2757775ed32f3860ee27c34245606edbf1dc3315 (patch) | |
| tree | 373e6ccc0c3951fe271551bf75b8bb7bc6e299ad /addons/website/static/src/xml/website.contentMenu.xml | |
| parent | 6b3b18958d36519efe25a39745b3e3edfbdd88c0 (diff) | |
[FIX] web_editor: allow vimeo, youku and undefined video sources again
The refactoring made with https://github.com/odoo/odoo/commit/62fb1bb92493b00bd45ed3f4eced5ca8b23f81d6#diff-2b3acc31ced2b1e9f7522a3e29f33c22L825
broke the possibility to add vimeo, youku or other undefined video
sources.
This is because of jQuery. With jQuery you can create elements thanks to
multiple methods. From least efficient to most efficient:
- All in a string:
$("<tag attr1='value1' attr2='value2'/>");
- Tag in a string, attrs thanks to methods:
$("<tag/>").attr("attr1", "value1").attr("attr2", "value2");
- Tag in a string, attrs in second arg:
$("<tag/>", {attr1: "value1", attr2: "value2"});
The mentionned refactoring transformed the use of the second method
into the use of the last one. But there is a bug in jQuery: you cannot
use the first method and the last one all together. So:
$("<tag attr1='value1'/>", {attr2: "value2"});
will create a tag with attr1 but will totally ignore the attr2 part.
It happens that the allowfullscreen attr was left directly in the
creation string for vimeo and youku, preventing the src to be added.
This commit removes the use of allowfullscreen attr as fullscreen
is already handled by source players anyway.
Diffstat (limited to 'addons/website/static/src/xml/website.contentMenu.xml')
0 files changed, 0 insertions, 0 deletions
