diff options
| author | Christophe Simonis <chs@odoo.com> | 2014-07-30 20:30:14 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2014-07-30 20:30:14 +0200 |
| commit | e4cb5202a056ba0ad666af0268861e672a2cdab3 (patch) | |
| tree | 7ffadb844202eaa8a4e3c6c9460b4a534ea34438 /addons/website/static/src | |
| parent | 23436ca25943037a01a1ff435e05aaa32a9ffed3 (diff) | |
| parent | fa07bc85329d825107f332053cecd2a51771823c (diff) | |
[MERGE] forward port of branch saas-4 up to fa07bc8
Diffstat (limited to 'addons/website/static/src')
| -rw-r--r-- | addons/website/static/src/css/snippets.css | 7 | ||||
| -rw-r--r-- | addons/website/static/src/css/snippets.sass | 6 | ||||
| -rw-r--r-- | addons/website/static/src/js/website.editor.js | 8 |
3 files changed, 20 insertions, 1 deletions
diff --git a/addons/website/static/src/css/snippets.css b/addons/website/static/src/css/snippets.css index cbfca8be131..777ded66138 100644 --- a/addons/website/static/src/css/snippets.css +++ b/addons/website/static/src/css/snippets.css @@ -375,6 +375,13 @@ } .oe_overlay .oe_overlay_options > .btn-group { left: -50%; + white-space: nowrap; +} +.oe_overlay .oe_overlay_options > .btn-group > a { + cursor: pointer; + display: inline-block; + float: none; + margin: 0 -3px; } .oe_overlay .oe_overlay_options .btn, .oe_overlay .oe_overlay_options a { cursor: pointer; diff --git a/addons/website/static/src/css/snippets.sass b/addons/website/static/src/css/snippets.sass index 40467897e26..33a45e426df 100644 --- a/addons/website/static/src/css/snippets.sass +++ b/addons/website/static/src/css/snippets.sass @@ -279,6 +279,12 @@ z-index: 1002 > .btn-group left: -50% + white-space: nowrap + > a + cursor: pointer + display: inline-block + float: none + margin: 0 -3px .btn, a cursor: pointer .dropdown diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js index c3c016b3ef2..cba6edf9c67 100644 --- a/addons/website/static/src/js/website.editor.js +++ b/addons/website/static/src/js/website.editor.js @@ -552,7 +552,13 @@ observer.disconnect(); var editor = this.rte.editor; var root = editor.element && editor.element.$; - editor.destroy(); + try { + editor.destroy(); + } + catch(err) { + // Hack to avoid the lost of all changes because ckeditor fails in destroy + console.log("Error in editor.destroy() : " + err.toString() + "\n " + err.stack); + } // FIXME: select editables then filter by dirty? var defs = this.rte.fetch_editables(root) .filter('.oe_dirty') |
