summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/services
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2018-04-19 10:33:21 +0200
committerGéry Debongnie <ged@odoo.com>2018-04-19 17:17:54 +0200
commita577ee12a0fccbd0f57c3087cfff86a9672ef271 (patch)
tree7cceead6a7432c39e606e27f5cff2c330b885c36 /addons/web/static/src/js/services
parent07cd24b1ecf3ab8edd3fffbf2fcd3a3e685f357c (diff)
[DOC] web: add documentation on notification system
Also, fix a few errors in the js docstring
Diffstat (limited to 'addons/web/static/src/js/services')
-rw-r--r--addons/web/static/src/js/services/notification_service.js4
1 files changed, 2 insertions, 2 deletions
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 = $('<div class="o_notification_manager"/>');
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;
},