From 77e54d2987c816341e9d0526d63ea945599db0ef Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Thu, 12 Nov 2015 11:59:43 +0100 Subject: [PATCH] [FIX] mail: chatter: follower subtype: check checkbox on unfollow cancel When unfollowing the last followed subtype, a confirm dialog is shown to the user to confirm that it will unfollow the document. If he clicked on 'Cancel', the unchecked subtype wasn't correctly re-checked. --- addons/mail/static/src/js/chatter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/static/src/js/chatter.js b/addons/mail/static/src/js/chatter.js index 3cae2588c4d..d90f8c287d0 100644 --- a/addons/mail/static/src/js/chatter.js +++ b/addons/mail/static/src/js/chatter.js @@ -413,7 +413,7 @@ var Followers = form_common.AbstractField.extend({ // If no more subtype followed, unsubscribe the follower if (!checklist.length) { if (!this.do_unfollow(ids)) { - $(event.target).attr("checked", "checked"); + $(event.target).prop("checked", true); } else { self.$('.o_subtypes_list ul').empty(); }