From 7863e04f420429cf5951cf7f3b50f678866bd1e4 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Fri, 26 Jun 2015 17:04:58 +0200 Subject: [PATCH] [FIX] website: Add pictogram When adding a pictogram to a page, the save button didn't automatically close the opened dialog. opw:642944 --- addons/website/static/src/js/website.editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js index ac980db1c51..c4514a6e9f6 100644 --- a/addons/website/static/src/js/website.editor.js +++ b/addons/website/static/src/js/website.editor.js @@ -1727,7 +1727,7 @@ var final_classes = non_fa_classes.concat(this.get_fa_classes()); this.media.$.className = final_classes.join(' '); this.media.renameNode("span"); - this.media.$.attributes.style.textContent = style; + $(this.media.$).attr("style", style || null); this._super(); }, /**