summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2015-07-29 14:26:39 +0200
committerChristophe Matthieu <chm@odoo.com>2015-07-31 10:08:58 +0200
commit374436bff8758a48e4fd44179c3821eb6688073c (patch)
tree13fb5a048503ec2fe74f0ec023236d85d61abef4 /addons/web_editor/static/src/js
parenteb50e66d62594e4704be791ad829281a3cb5bc9d (diff)
[FIX] web_editor: on firefox css rules doesn't have key with hyphen
On save (eg: in mass_mailing), the style contains 'undefined' values
Diffstat (limited to 'addons/web_editor/static/src/js')
-rw-r--r--addons/web_editor/static/src/js/transcoder.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/transcoder.js b/addons/web_editor/static/src/js/transcoder.js
index c7bcd14107f..9188bfabb45 100644
--- a/addons/web_editor/static/src/js/transcoder.js
+++ b/addons/web_editor/static/src/js/transcoder.js
@@ -46,7 +46,7 @@ var getMatchedCSSRules = function (a) {
if (style.parentRule) {
var style_obj = {};
for (var k=0, len=style.length; k<len; k++) {
- style_obj[style[k]] = style[style[k]];
+ style_obj[style[k]] = style[style[k].replace(/-(.)/g, function (a, b) { return b.toUpperCase(); })];
}
rulesCache[r].style = style = style_obj;
}