[IMP] web_editor: display not found snippets template warning message

This commit is contained in:
Christophe Matthieu
2015-08-05 10:31:15 +02:00
parent 426baf3710
commit 4474b5ac70
@@ -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) {