summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/activity.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-07-26 11:32:43 +0200
committerChristophe Simonis <chs@odoo.com>2019-07-26 11:32:43 +0200
commite0f9c092ccefc0516d06a9dc7f66e650eee888cf (patch)
tree0c404769dc28af133425cf9756a83569c70b31f3 /addons/mail/static/src/js/activity.js
parent7d78795f8b34bc6a8afde18427a1c26901824db3 (diff)
parent1d6d790513e3f1177dc0059f2ba4a06de6d87ac2 (diff)
[MERGE] forward port branch saas-12.2 up to 1d6d790513e
Diffstat (limited to 'addons/mail/static/src/js/activity.js')
-rw-r--r--addons/mail/static/src/js/activity.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/activity.js b/addons/mail/static/src/js/activity.js
index 607f1b8c553..77550f498f3 100644
--- a/addons/mail/static/src/js/activity.js
+++ b/addons/mail/static/src/js/activity.js
@@ -383,7 +383,7 @@ var BasicActivity = AbstractField.extend({
container: $markDoneBtn,
title : _t("Feedback"),
html: true,
- trigger:'click',
+ trigger: 'manual',
placement: 'right', // FIXME: this should work, maybe a bug in the popper lib
content : function () {
var $popover = $(QWeb.render('mail.activity_feedback_form', {
@@ -400,6 +400,11 @@ var BasicActivity = AbstractField.extend({
$popover.find('#activity_feedback').focus();
self._bindPopoverFocusout($(this));
}).popover('show');
+ } else {
+ var popover = $markDoneBtn.data('bs.popover');
+ if ($('#' + popover.tip.id).length === 0) {
+ popover.show();
+ }
}
},
/**