From 4474b5ac70abd4556f22fb38b60aac79728d2009 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Tue, 4 Aug 2015 16:02:29 +0200 Subject: [PATCH] [IMP] web_editor: display not found snippets template warning message --- addons/web_editor/static/src/js/snippets.editor.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/web_editor/static/src/js/snippets.editor.js b/addons/web_editor/static/src/js/snippets.editor.js index 9d37a9f84c8..cc380833074 100644 --- a/addons/web_editor/static/src/js/snippets.editor.js +++ b/addons/web_editor/static/src/js/snippets.editor.js @@ -193,6 +193,9 @@ var BuildingBlock = Widget.extend({ return ajax.jsonRpc(url, 'call', {}).then(function (html) { self.compute_snippet_templates(html); self.trigger("snippets:ready"); + }, function () { + self.$snippet.hide(); + console.warn('Snippets template not found:', url); }); }, compute_snippet_templates: function (html) {