Skip to content

Commit

Permalink
conditional postclick execution onNext
Browse files Browse the repository at this point in the history
  • Loading branch information
bagnacan committed May 12, 2017
1 parent aab8833 commit 878c665
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
13 changes: 9 additions & 4 deletions client/galaxy/scripts/mvc/tours.js
Expand Up @@ -32,10 +32,15 @@ define(['libs/bootstrap-tour'],function(BootstrapTour) {
}
if (step.postclick){
step.onHide = function(){
_.each(step.postclick, function(postclick){
// TODO: click delay between clicks
$(postclick).click();
});
// we distinguish what happens onHide when onNext or onPrev,
// otherwise postclicks are triggered regardless the user
// selects the Next or Prev step
step.onNext = function(){
_.each(step.postclick, function(postclick){
// TODO: click delay between clicks
$(postclick).click();
});
};
};
}
if (step.textinsert){
Expand Down
2 changes: 1 addition & 1 deletion static/maps/mvc/tours.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion static/scripts/bundled/libs.bundled.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/scripts/bundled/libs.bundled.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/scripts/mvc/tours.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 878c665

Please sign in to comment.