added delay
This commit is contained in:
parent
3fcb819881
commit
31317a355b
@ -7,7 +7,7 @@ Walter.tours = {};
|
|||||||
Walter.incompleteTours = [];
|
Walter.incompleteTours = [];
|
||||||
Walter.startTour = function(tourName) {
|
Walter.startTour = function(tourName) {
|
||||||
if (!Shepherd.activeTour) {
|
if (!Shepherd.activeTour) {
|
||||||
Walter.tours[tourName].start();
|
setTimeout(function(){Walter.tours[tourName].start()}, 300);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Walter.startNextIncompleteTour = function() {
|
Walter.startNextIncompleteTour = function() {
|
||||||
|
@ -25,6 +25,7 @@ module WalterHelper
|
|||||||
locals: { tour_name: key,
|
locals: { tour_name: key,
|
||||||
tour_completed: tour_keys_completed.include?(key),
|
tour_completed: tour_keys_completed.include?(key),
|
||||||
trigger: tours[key]["trigger"],
|
trigger: tours[key]["trigger"],
|
||||||
|
tour_delay: tours[key]['delay']||500,
|
||||||
steps: tours[key]["steps"] }))
|
steps: tours[key]["steps"] }))
|
||||||
end
|
end
|
||||||
tour_html.html_safe
|
tour_html.html_safe
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
if (tourMayStart) {
|
if (tourMayStart) {
|
||||||
start();
|
setTimeout(function(){start();}, <%= tour_delay %>); // need to delay this
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}(Walter.tours["<%= tour_name %>"].start)
|
}(Walter.tours["<%= tour_name %>"].start)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user