-
-
Save elsapet/5d0ab1aa7329334cbbc2 to your computer and use it in GitHub Desktop.
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
$('#multiple-datasets .typeahead').on('typeahead:selected',function(event, item, name){ | |
// item is { name: 'Descartes' } | |
// name is 'philosophers' | |
var path = name+'/'+item.name; | |
url = 'http://localhost:3000/'+path; | |
window.location = url; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment