diff options
| author | qdp-odoo <qdp@openerp.com> | 2014-05-30 16:52:03 +0200 |
|---|---|---|
| committer | qdp-odoo <qdp@openerp.com> | 2014-05-30 17:05:44 +0200 |
| commit | 0fa755bc8943131ccc856a0c68c3a631dba6a2fe (patch) | |
| tree | 3dad1c1611311db043eea292dcead884310cf26a /addons/website/static/src/js/website.editor.js | |
| parent | 742cfe83e0b1f9fccc5770da32bddcb4dd89b7d2 (diff) | |
| parent | 8d822419e74969ff032db653a3797affeccace1b (diff) | |
[MERGE] master
Diffstat (limited to 'addons/website/static/src/js/website.editor.js')
| -rw-r--r-- | addons/website/static/src/js/website.editor.js | 10 |
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(); }); |
