[IMP] website tour: auto set backdrop if no selector element
bzr revid: chm@openerp.com-20140321111815-t0312xxl7l83w9rx
This commit is contained in:
parent
58b6aeb01d
commit
254b3a29fa
|
@ -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]',
|
||||
|
|
|
@ -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] &&
|
||||
|
|
Loading…
Reference in New Issue