Skip to content
Snippets Groups Projects
Commit 6b027582 authored by qsm-odoo's avatar qsm-odoo
Browse files

[FIX] web_tour: ideal tip location for html and body element

When searching the ideal location for a tip on the body or the html
element, the previous implementation was wrong. In that case, the ideal
location is always the body.
parent 35a286a3
No related branches found
No related tags found
No related merge requests found
......@@ -118,6 +118,10 @@ var Tip = Widget.extend({
},
_get_ideal_location: function () {
var $location = this.$anchor;
if ($location.is("html,body")) {
return $(document.body);
}
var o;
var p;
do {
......
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