summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2015-11-12 11:59:43 +0100
committerAaron Bohy <aab@odoo.com>2015-11-12 12:02:46 +0100
commit77e54d2987c816341e9d0526d63ea945599db0ef (patch)
tree989ea6a8468253f973d450c3485f6858eba04b27 /addons/mail/static/src/js
parent13a3f8e732d39d461284ac0a56c7171fbcc02252 (diff)
[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.
Diffstat (limited to 'addons/mail/static/src/js')
-rw-r--r--addons/mail/static/src/js/chatter.js2
1 files changed, 1 insertions, 1 deletions
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();
}