Skip to content
Snippets Groups Projects
Commit 374436bf authored by Christophe Matthieu's avatar Christophe Matthieu
Browse files

[FIX] web_editor: on firefox css rules doesn't have key with hyphen

On save (eg: in mass_mailing), the style contains 'undefined' values
parent eb50e66d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment