summaryrefslogtreecommitdiff
path: root/addons/website_forum/static/src
diff options
context:
space:
mode:
authorfja-odoo <fja@odoo.com>2019-06-11 12:27:01 +0000
committerfja-odoo <fja@odoo.com>2019-06-28 08:53:53 +0000
commite26d23cb971757787238d05ffaad34619c886dde (patch)
tree43c77f4f3cb0963fe3306cbac165f4c1acec7c9c /addons/website_forum/static/src
parent283f8fed6e85f2df0386de46138129b4cadc52d7 (diff)
[FIX] website_forum: remove unused close notif event
This code was not used properly and was triggering useless rpc. This code was used in the deprecated badge system and we forgot to remove it. Commit where the code should have been removed: ec212de5c7a7b0f4b74549add62a2988f5b38ee6 Commit where a quick fix was made: 1e1ea00e66686d76a36fa0c19c3e4865e3161031
Diffstat (limited to 'addons/website_forum/static/src')
-rw-r--r--addons/website_forum/static/src/js/website_forum.js17
1 files changed, 0 insertions, 17 deletions
diff --git a/addons/website_forum/static/src/js/website_forum.js b/addons/website_forum/static/src/js/website_forum.js
index 1557d6fd50f..51cae0cc28f 100644
--- a/addons/website_forum/static/src/js/website_forum.js
+++ b/addons/website_forum/static/src/js/website_forum.js
@@ -30,7 +30,6 @@ publicWidget.registry.websiteForum = publicWidget.Widget.extend({
'click .accept_answer:not(.karma_required)': '_onAcceptAnswerClick',
'click .favourite_question': '_onFavoriteQuestionClick',
'click .comment_delete': '_onDeleteCommentClick',
- 'click .notification_close': '_onCloseNotificationClick',
'click .js_close_intro': '_onCloseIntroClick',
},
@@ -455,22 +454,6 @@ publicWidget.registry.websiteForum = publicWidget.Widget.extend({
* @private
* @param {Event} ev
*/
- _onCloseNotificationClick: function (ev) {
- if (!session.is_website_user) {
- ev.preventDefault();
- var $link = $(ev.currentTarget);
- this._rpc({
- route: '/forum/notification_read',
- params: {
- notification_id: $link.attr('id'),
- },
- });
- }
- },
- /**
- * @private
- * @param {Event} ev
- */
_onCloseIntroClick: function (ev) {
ev.preventDefault();
document.cookie = 'forum_welcome_message = false';