summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/xml/ace.xml
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2016-10-19 17:41:10 +0200
committerqsm-odoo <qsm@odoo.com>2016-11-08 14:18:28 +0100
commit5a030db3eb77b6d80187f8ae1a64303b2f50391d (patch)
tree24e1ed9fd9862f8a1a9d255489a0f7abb461b866 /addons/web_editor/static/src/xml/ace.xml
parent42226de46ea0cb2ff93f8e34af323fb1d805fce0 (diff)
[REF] website, web_editor: refactor ace editor
Stop using ugly code for ace editor. * Really close the ace editor by changing its display property thanks to the dedicated do_show and do_hide method. * Make the common part of ace editors (website, web_studio) consistent so that the extensions are really small. * Do not do RPC to retrieve data already retrieved (now, there is only one unique RPC when the editor starts an one RPC per view changed on save). * Fix born-dead code so that the website editor starts automatically if the URL contains its associated hash and loads the correct view * Better handle errors (previous behavior only worked partially and only on chrome): - Jump to the error line and make it red. - Do not open a Dialog with mostly incomprehensible message but allow to open it on click of the error marker. - Do not save any changed file if one contains an error. - Do not allow formatting a file if it contains an error (show the error instead). * Do not use different routes to get the same content (remove the /website/customize_template_get route as it returns the same content as /web_editor/customize_template_get route). Note: in a further commit this route will be refactored. * In a general way, use consistent method names and behaviors / comment the code / lint files / ... * Open the code to extensions (so that it may later load other data than XML). Note: this refactoring allowed to fix bugs in previous odoo versions but this commit message will not detail them.
Diffstat (limited to 'addons/web_editor/static/src/xml/ace.xml')
-rw-r--r--addons/web_editor/static/src/xml/ace.xml6
1 files changed, 1 insertions, 5 deletions
diff --git a/addons/web_editor/static/src/xml/ace.xml b/addons/web_editor/static/src/xml/ace.xml
index d4faf260c00..3451418a94b 100644
--- a/addons/web_editor/static/src/xml/ace.xml
+++ b/addons/web_editor/static/src/xml/ace.xml
@@ -2,7 +2,7 @@
<templates>
<t t-name="web_editor.ace_view_editor">
- <div class="o_ace_view_editor oe_ace_closed">
+ <div class="o_ace_view_editor">
<div class="form-inline o_ace_view_editor_title">
<select id="ace-view-list" class="form-control oe_view_list"/>
<label class="oe_include_bundles">
@@ -22,8 +22,4 @@
</div>
</t>
-<t t-name="web_editor.ace_view_option">
- <option t-att-value="widget.view_id"><t t-esc="widget.view_name"/></option>
-</t>
-
</templates>