Created
December 10, 2014 16:37
-
-
Save scottweisman/759673329bd17406fd84 to your computer and use it in GitHub Desktop.
hopscotch tour status
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var getTourStatus = function() { | |
var tourStatus = ""; | |
$.ajax({ | |
type: "GET", | |
url: "/users/" + userId + ".json", | |
dataType: "json", | |
data: { get_param: 'finished_tour' }, | |
success: function(data) { | |
var tourStatus = data.finished_tour; | |
if(!tourStatus) { | |
hopscotch.startTour(basicSearch); | |
} | |
} | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment