summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/widgets
diff options
context:
space:
mode:
authorJorge Pinna Puissant <jpp@odoo.com>2019-01-07 10:43:40 +0000
committerJorge Pinna Puissant <jpp@odoo.com>2019-01-09 07:29:22 +0000
commit171d1e7bc3bf1df28c6c4aaf8e39abb3e0e9b75e (patch)
treed4d941ea30bd40a36c688e625aa222147135e2da /addons/web_editor/static/src/js/widgets
parent270171752f6b9cb9ad87644cb36ab16c9e84f4f8 (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/widgets')
-rw-r--r--addons/web_editor/static/src/js/widgets/widgets.js1
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();
},