summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/snippets.editor.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web_editor/static/src/js/snippets.editor.js')
-rw-r--r--addons/web_editor/static/src/js/snippets.editor.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web_editor/static/src/js/snippets.editor.js b/addons/web_editor/static/src/js/snippets.editor.js
index ef033dc07f3..ee0e07e4514 100644
--- a/addons/web_editor/static/src/js/snippets.editor.js
+++ b/addons/web_editor/static/src/js/snippets.editor.js
@@ -213,8 +213,8 @@ var BuildingBlock = Widget.extend({
}).on('click', function () {$(this).tooltip('hide');});
// t-snippet
- $html.find('[data-oe-type="snippet"][data-oe-name]').each(function () {
- var $div = $('<div/>').insertAfter(this).append(this).attr('name', $(this).data('oe-name'));
+ $html.find('[data-oe-type="snippet"]').each(function () {
+ $(this).children().attr('data-oe-type', "snippet").attr('data-oe-thumbnail', $(this).data('oe-thumbnail'));
});
// end