diff options
| author | Fabien Meghazi <fme@openerp.com> | 2013-11-19 12:06:12 +0100 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2013-11-19 12:06:12 +0100 |
| commit | bb0badbf404102f4566e92b50be18c34489d856c (patch) | |
| tree | 64b26fb6262b7e4733deb5181a2c526415d992c0 /addons/website/static/src/js/website.editor.js | |
| parent | 9bdf29952e21cbee24991fb4889843329eb9fd45 (diff) | |
[IMP] Simplify js_link2post event
bzr revid: fme@openerp.com-20131119110612-uc4j1l6xexrt9fyt
Diffstat (limited to 'addons/website/static/src/js/website.editor.js')
| -rw-r--r-- | addons/website/static/src/js/website.editor.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js index 530d8470af8..1fe4149e78d 100644 --- a/addons/website/static/src/js/website.editor.js +++ b/addons/website/static/src/js/website.editor.js @@ -14,12 +14,7 @@ $(document).on('click', 'a.js_link2post', function (ev) { ev.preventDefault(); - var form = document.createElement('form'); - form.action = this.pathname; // restrict to same origin - form.method = 'POST'; - // TODO: support this.search as form input fields - $(this).append(form); - form.submit(); + website.form(this.pathname, 'POST'); }); $(document).on('hide.bs.dropdown', '.dropdown', function (ev) { |
