[FIX] mail_activity_team: restore to my activities when unselecting
This commit is contained in:
parent
607faa0857
commit
e4f701d36f
@ -98,4 +98,13 @@ ActivityMenu.include({
|
|||||||
session.user_context.team_activities = false;
|
session.user_context.team_activities = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
_onActivityMenuHide: function () {
|
||||||
|
this.filter = "my";
|
||||||
|
this._update_team_activities_context();
|
||||||
|
this._getActivityData();
|
||||||
|
this.$filter_buttons.removeClass("active");
|
||||||
|
var $target = $(".my_activities");
|
||||||
|
$target.addClass("active");
|
||||||
|
return this._super.apply(this, arguments);
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
@ -7,13 +7,13 @@
|
|||||||
<div>
|
<div>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="btn btn-link o_filter_button active"
|
class="my_activities btn btn-link o_filter_button active"
|
||||||
data-filter='my'
|
data-filter='my'
|
||||||
role="tab"
|
role="tab"
|
||||||
> My Activities </button>
|
> My Activities </button>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="btn btn-link o_filter_button"
|
class="team_activities btn btn-link o_filter_button"
|
||||||
data-filter='team'
|
data-filter='team'
|
||||||
role="tab"
|
role="tab"
|
||||||
> Team Activities </button>
|
> Team Activities </button>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user