summaryrefslogtreecommitdiff
path: root/addons/website/static/src
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2014-05-27 11:54:01 +0200
committerXavier Morel <xmo@openerp.com>2014-05-27 12:13:51 +0200
commite06f5b414b47270c1b30dfe49a5f2d7621d54714 (patch)
tree071ccf78d1ee9388bc7508b31c307d6e2f1d5a81 /addons/website/static/src
parente2f41d09ba7a5f2e6b0fa8efa1624e257824c992 (diff)
[IMP] inherit_option_id -> application
Diffstat (limited to 'addons/website/static/src')
-rw-r--r--addons/website/static/src/js/website.editor.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js
index 595df04a088..fcb957cafda 100644
--- a/addons/website/static/src/js/website.editor.js
+++ b/addons/website/static/src/js/website.editor.js
@@ -470,8 +470,14 @@
});
menu.on('click', 'a[data-action!=ace]', function (event) {
var view_id = $(event.currentTarget).data('view-id');
- openerp.jsonRpc('/website/customize_template_toggle', 'call', {
- 'view_id': view_id
+ return openerp.jsonRpc('/web/dataset/call_kw', 'call', {
+ model: 'ir.ui.view',
+ method: 'toggle',
+ args: [],
+ kwargs: {
+ ids: [parseInt(view_id, 10)],
+ context: website.get_context()
+ }
}).then( function() {
window.location.reload();
});