diff options
| author | qsm-odoo <qsm@odoo.com> | 2016-09-27 15:30:08 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2016-09-27 15:42:31 +0200 |
| commit | 5f98040430ab0ce750382cc0faf57146f8759752 (patch) | |
| tree | 18d2557f8ac054cce12229d47bae85cd20ee33d5 /addons/website/static/src/js/website.contentMenu.js | |
| parent | 52ba0552a4107178e95b1d7f618ccdc761212885 (diff) | |
[FIX] website, *: properly process saving from editor dialogs
* web_editor, website_blog
Since recent refactoring, web editor dialogs automatically trigger
an event when closed (saved or cancel). The problem is that there
still was manual trigger of those events or variants ("save" instead
of "saved").
To prevent multi-saving and be consistent, all save events are now
automatically triggered on save/close (no more manual) and the event
name is "save".
Diffstat (limited to 'addons/website/static/src/js/website.contentMenu.js')
| -rw-r--r-- | addons/website/static/src/js/website.contentMenu.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/website/static/src/js/website.contentMenu.js b/addons/website/static/src/js/website.contentMenu.js index e01ec55eb24..d91007a7491 100644 --- a/addons/website/static/src/js/website.contentMenu.js +++ b/addons/website/static/src/js/website.contentMenu.js @@ -180,8 +180,8 @@ var SelectEditMenuDialog = widget.Dialog.extend({ }, options || {})); }, save: function () { - this.trigger("save", parseInt(this.$el.find("select").val() || null)); - this._super(); + this.final_data = parseInt(this.$el.find("select").val() || null); + this._super.apply(this, arguments); } }); |
