[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.
This commit is contained in:
Géry Debongnie
2015-07-24 14:31:51 +02:00
parent cf66cfe5fa
commit 4f5d498eb3
@@ -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));