Skip to content
Snippets Groups Projects
Commit ee51d082 authored by Astik Singh's avatar Astik Singh
Browse files

[FIX] survey: resolved the popover issue stuck in a live session


Before this commit:
In the survey, when you start a live session and click on the URL the `copied`
popover appears but doesn't go away.

After this commit:
Now that popover will close automatically.

Reason:
There was already a `tooltip` instance on the element and we try to add the
`popover` on that element which causes an issue.

Task- 3458901

closes odoo/odoo#132956

Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent ec5f6003
No related branches found
No related tags found
No related merge requests found
......@@ -87,6 +87,7 @@ publicWidget.registry.SurveySessionManage = publicWidget.Widget.extend(SurveyPre
ev.preventDefault();
var $clipboardBtn = this.$('.o_survey_session_copy');
$clipboardBtn.tooltip('dispose');
$clipboardBtn.popover({
placement: 'right',
......@@ -108,7 +109,7 @@ publicWidget.registry.SurveySessionManage = publicWidget.Widget.extend(SurveyPre
clipboard.destroy();
$clipboardBtn.popover('show');
_.delay(function () {
$clipboardBtn.popover('hide');
$clipboardBtn.popover('dispose');
}, 800);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment