[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.
This commit is contained in:
Aaron Bohy
2015-11-12 12:02:46 +01:00
parent 13a3f8e732
commit 77e54d2987
+1 -1
View File
@@ -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();
}