[IMP] web_tour: add in_modal option to allow checking the dom below the modal

This commit is contained in:
Christophe Matthieu
2016-08-26 09:30:38 +02:00
committed by qsm-odoo
parent c82b65c855
commit ee4065e2bc
@@ -212,7 +212,7 @@ return core.Class.extend({
},
_check_for_tooltip: function (tip, tour_name) {
var $trigger;
if (this.$modal_displayed.length) {
if (tip.in_modal !== false && this.$modal_displayed.length) {
$trigger = this.$modal_displayed.find(tip.trigger);
} else {
$trigger = $(tip.trigger);