diff options
| author | Géry Debongnie <ged@odoo.com> | 2015-07-24 14:27:44 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2015-07-24 14:31:51 +0200 |
| commit | 4f5d498eb38b2ffbaaa65f6eae4bb72c55ab7dee (patch) | |
| tree | 3823000d8532300603c41e920902d386187e5221 /addons/web/static | |
| parent | cf66cfe5facedcb4be5ee11e138a56660cea8958 (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')
| -rw-r--r-- | addons/web/static/src/js/widgets/notification.js | 3 |
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)); |
