From a577ee12a0fccbd0f57c3087cfff86a9672ef271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Thu, 19 Apr 2018 10:33:21 +0200 Subject: [DOC] web: add documentation on notification system Also, fix a few errors in the js docstring --- addons/web/static/src/js/services/notification_service.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addons/web/static/src/js/services') diff --git a/addons/web/static/src/js/services/notification_service.js b/addons/web/static/src/js/services/notification_service.js index 7d6ad473fe4..bbeeca51bb8 100644 --- a/addons/web/static/src/js/services/notification_service.js +++ b/addons/web/static/src/js/services/notification_service.js @@ -71,12 +71,12 @@ var NotificationService = AbstractService.extend({ * @param {string} [params.buttons[0].icon] font-awsome className or image src * @returns {Number} notification id */ - notify: function (options) { + notify: function (params) { if (!this.$el) { this.$el = $('
'); this.$el.prependTo('body'); } - var notification = this.notifications[++id] = new Notification(this, options); + var notification = this.notifications[++id] = new Notification(this, params); notification.appendTo(this.$el); return id; }, -- cgit v1.2.3