summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/widgets
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2015-07-24 14:27:44 +0200
committerGéry Debongnie <ged@odoo.com>2015-07-24 14:31:51 +0200
commit4f5d498eb38b2ffbaaa65f6eae4bb72c55ab7dee (patch)
tree3823000d8532300603c41e920902d386187e5221 /addons/web/static/src/js/widgets
parentcf66cfe5facedcb4be5ee11e138a56660cea8958 (diff)
[IMP] web: modify notification.js like in enterprise
The enterprise web client had to be modified to fix a crash. This crash does not occur in the community web client, but this commit makes sure that the semantics of the notification manager is the same as the enterprise version, to prevent future problems.
Diffstat (limited to 'addons/web/static/src/js/widgets')
-rw-r--r--addons/web/static/src/js/widgets/notification.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/static/src/js/widgets/notification.js b/addons/web/static/src/js/widgets/notification.js
index 314034ef748..e6d26265161 100644
--- a/addons/web/static/src/js/widgets/notification.js
+++ b/addons/web/static/src/js/widgets/notification.js
@@ -54,7 +54,8 @@ var NotificationManager = Widget.extend({
className: 'o_notification_manager',
display: function(notification) {
- return notification.appendTo(this.$el);
+ notification.appendTo(this.$el);
+ return notification;
},
notify: function(title, text, sticky) {
return this.display(new Notification(this, title, text, sticky));