diff options
| author | qsm-odoo <qsm@odoo.com> | 2019-02-06 10:14:37 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-02-06 12:48:01 +0000 |
| commit | eacaf02544fe3b2c51e48234bffcf86aff6841f1 (patch) | |
| tree | f64e610b57a925417b0932b089cffda7ee845c41 /doc/reference/javascript_cheatsheet.rst | |
| parent | 7c6b8baf03d9c942c25112c907626d5184e4dd09 (diff) | |
[FIX] website: restore some edit.js features
Following the new editor's merge at https://github.com/odoo/odoo/pull/29775,
the website 'edit.js' file received mistakes / useless code.
https://github.com/odoo/odoo/pull/30839 fixes one of them. Hopefully
this commit will solve the remaining ones.
- https://github.com/odoo/odoo/blob/12.0/addons/website/static/src/js/menu/edit.js#L43
was moved for no reason at all at the bottom of the method alongside
its comment which broke the feature and made the comment wrong.
- Changed a '.a' selector into a '.a:not(.b), .a.b' selector...
https://github.com/odoo/odoo/blob/b6db6b878c5d329c19262d829e13726c3a3a1d25/addons/website/static/src/js/menu/edit.js#L136
- For the same selector, a 'FIXME' comment was removed while it was not
fixed (this restores it as a 'TODO' instead of a 'FIXME' though).
- On edition stop, removed all the data-editor-message, even the
specific ones that were not added by the editor (note that it was not
a problem for the current ones in Odoo as they were by chance on the
main editable elements which made them not saved in the database):
https://github.com/odoo/odoo/blob/b6db6b878c5d329c19262d829e13726c3a3a1d25/addons/website/static/src/js/menu/edit.js#L177
closes odoo/odoo#30870
Diffstat (limited to 'doc/reference/javascript_cheatsheet.rst')
0 files changed, 0 insertions, 0 deletions
