[IMP] website tour: auto set backdrop if no selector element

bzr revid: chm@openerp.com-20140321111815-t0312xxl7l83w9rx
This commit is contained in:
chm@openerp.com 2014-03-21 12:18:15 +01:00
parent 58b6aeb01d
commit 254b3a29fa
2 changed files with 1 additions and 2 deletions

View File

@ -13,7 +13,6 @@
title: _t("Welcome to your website!"),
content: _t("This tutorial will guide you to build your home page. We will start by adding a banner."),
popover: { next: _t("Start Tutorial"), end: _t("Skip It") },
backdrop: true,
},
{
element: 'button[data-action=edit]',
@ -78,7 +77,6 @@
title: _t("Good Job!"),
content: _t("Well done, you created your homepage."),
popover: { next: _t("Continue") },
backdrop: true,
},
{
element: 'a[data-action=show-mobile-preview]',

View File

@ -137,6 +137,7 @@ T.registerSteps = function (tour) {
if (!step.element) {
step.element = "body";
step.orphan = true;
step.backdrop = true;
}
}
if (tour.steps[index-1] &&