summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework/dialog.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/js/framework/dialog.js')
-rw-r--r--addons/web/static/src/js/framework/dialog.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/js/framework/dialog.js b/addons/web/static/src/js/framework/dialog.js
index f401cf78591..1a37b8710b5 100644
--- a/addons/web/static/src/js/framework/dialog.js
+++ b/addons/web/static/src/js/framework/dialog.js
@@ -130,12 +130,12 @@ var Dialog = Widget.extend({
this.$modal.modal('hide');
},
- destroy: function() {
+ destroy: function(reason) {
if (this.isDestroyed()) {
return;
}
- this.trigger("closed");
+ this.trigger("closed", reason);
this._super();