diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-04-25 14:43:44 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-04-25 14:43:44 +0200 |
| commit | bb8f0f1fc3d0f5574938019ca69cc917a55e7962 (patch) | |
| tree | a6662094bb9c307981461fdb9872195032f2da06 /addons/web_editor/static/src/js | |
| parent | 9ad6a9df6e5e5654bc98c4c655848404b4e946b2 (diff) | |
| parent | 4d337f72ed59d1e5260fa2bb4f3d238e6ed11415 (diff) | |
[MERGE] forward port of branch saas-9 up to 4d337f7
Diffstat (limited to 'addons/web_editor/static/src/js')
| -rw-r--r-- | addons/web_editor/static/src/js/rte.js | 2 | ||||
| -rw-r--r-- | addons/web_editor/static/src/js/translator.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/addons/web_editor/static/src/js/rte.js b/addons/web_editor/static/src/js/rte.js index bbd5e6616aa..8fc84008693 100644 --- a/addons/web_editor/static/src/js/rte.js +++ b/addons/web_editor/static/src/js/rte.js @@ -205,7 +205,7 @@ var history = new History(); $.extend($.expr[':'],{ o_editable: function (node,i,m) { while (node) { - if (node.className) { + if (node.className && _.isString(node.className)) { if (node.className.indexOf('o_not_editable')!==-1 ) { return false; } diff --git a/addons/web_editor/static/src/js/translator.js b/addons/web_editor/static/src/js/translator.js index 3155277d1e3..ead8ea8271c 100644 --- a/addons/web_editor/static/src/js/translator.js +++ b/addons/web_editor/static/src/js/translator.js @@ -47,10 +47,10 @@ var RTE_Translate = rte.Class.extend({ return ajax.jsonRpc('/web/dataset/call', 'call', { model: 'ir.translation', - method: 'write', + method: 'save_html', args: [ [+$el.data('oe-translation-id')], - {'value': translation_content, 'state': 'translated'}, + translation_content, context || base.get_context() ], }); |
