[FIX] website: make the 'include assets bundle' option of ace editor work
Commit which added summernote broke the ace editor with a strange change: https://github.com/odoo/odoo/commit/9069d0127c176317436b67b23ae5677dd9d53de7#diff-e9d66a1b466f404be082fa00519eafa5L140. With this change instead of not including the assets bundles in the ace editor and allowing to see them by checking the option, the assets bundles were included when NOT in debug mode and not included when in debug mode.
This commit is contained in:
@@ -137,7 +137,7 @@
|
||||
var args = {
|
||||
key: $(document.documentElement).data('view-xmlid'),
|
||||
full: true,
|
||||
bundles: !!$('script[src*=".assets_common"]').length
|
||||
bundles: this.$('.js_include_bundles')[0].checked
|
||||
};
|
||||
return openerp
|
||||
.jsonRpc('/website/customize_template_get', 'call', args)
|
||||
|
||||
Reference in New Issue
Block a user