summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2015-08-04 16:02:29 +0200
committerChristophe Matthieu <chm@odoo.com>2015-08-05 10:31:15 +0200
commit4474b5ac70abd4556f22fb38b60aac79728d2009 (patch)
tree934d7cb52aa780b4ed9890958d3a926a346945fa /addons/web_editor/static/src
parent426baf37106dffe2f390bd46150a164b84eaa7ea (diff)
[IMP] web_editor: display not found snippets template warning message
Diffstat (limited to 'addons/web_editor/static/src')
-rw-r--r--addons/web_editor/static/src/js/snippets.editor.js3
1 files changed, 3 insertions, 0 deletions
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) {