Skip to content
Snippets Groups Projects
Commit fd101214 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

force manual

parent ca734e2c
No related branches found
No related tags found
2 merge requests!36merge f-boot-tour to dev,!31remove xs
Pipeline #6700 failed
...@@ -404,6 +404,10 @@ var tour = new function () { ...@@ -404,6 +404,10 @@ var tour = new function () {
// initialize next/prev buttons // initialize next/prev buttons
var nb = $(this.popover.tip).find("button[data-role=next]") var nb = $(this.popover.tip).find("button[data-role=next]")
if (this.get_next()) { if (this.get_next()) {
if (this.config.force_manual_action){
nb.toggleClass("disabled", true);
nb.attr("title","Manual action required!")
} else {
nb.on("click", (e) => { nb.on("click", (e) => {
const pn = this.get_next() const pn = this.get_next()
pn.activate(true); pn.activate(true);
...@@ -414,6 +418,7 @@ var tour = new function () { ...@@ -414,6 +418,7 @@ var tour = new function () {
pn._open(); pn._open();
} }
}); });
}
} else { } else {
nb.toggleClass("invisible", true); nb.toggleClass("invisible", true);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment