diff options
| author | Jorge Pinna Puissant <jpp@odoo.com> | 2019-01-07 10:43:40 +0000 |
|---|---|---|
| committer | Jorge Pinna Puissant <jpp@odoo.com> | 2019-01-09 07:29:22 +0000 |
| commit | 171d1e7bc3bf1df28c6c4aaf8e39abb3e0e9b75e (patch) | |
| tree | d4d941ea30bd40a36c688e625aa222147135e2da /addons/web_editor/static/src/js | |
| parent | 270171752f6b9cb9ad87644cb36ab16c9e84f4f8 (diff) | |
[FIX] web_editor: Media dialog next btn reload page
opw-1910505
Before this commit, the next button in the media dialog widget reloaded
the page and opened only the iframe of the widget.
Now, the button only update the media dialog widget.
closes odoo/odoo#29981
Diffstat (limited to 'addons/web_editor/static/src/js')
| -rw-r--r-- | addons/web_editor/static/src/js/widgets/widgets.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/widgets/widgets.js b/addons/web_editor/static/src/js/widgets/widgets.js index 7c33ab53b97..30de8171e53 100644 --- a/addons/web_editor/static/src/js/widgets/widgets.js +++ b/addons/web_editor/static/src/js/widgets/widgets.js @@ -1288,6 +1288,7 @@ var MediaDialog = Dialog.extend({ * @private */ _onPagerClick: function (ev) { + ev.preventDefault(); this.active.goToPage(this.active.page + ($(ev.currentTarget).hasClass('previous') ? -1 : 1)); this._updateControlPanel(); }, |
