diff options
| author | qsm-odoo <qsm@odoo.com> | 2017-01-12 17:10:44 +0100 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2017-02-14 16:29:27 +0100 |
| commit | c248674a5c615c9db113357eec9d9adaf50b888e (patch) | |
| tree | ff2f4f99ac0ef9e74f4009267b80ca29bbc1c391 /addons/web_editor/static/src/less/web_editor.ui.components.less | |
| parent | 9a1ea6dc08af8b6dc5c5a47277f03f662094d4b2 (diff) | |
[IMP] base: handle LESS compilation error a better way
Before this commit, when a LESS bundle compilation failed, web pages
were displayed without any style and the error appeared in the DOM
thanks to a custom ::before style which was ugly and not selectable.
Now the error is displayed like any other error in Odoo: in a dialog
with selectable content. The pages are also displayed with the last
style which was successfuly compiled.
If odoo dialog are not defined (a page without any javascript), a
fallback has been implemented to show the LESS error with a JS alert.
Diffstat (limited to 'addons/web_editor/static/src/less/web_editor.ui.components.less')
0 files changed, 0 insertions, 0 deletions
