func BeforeTransition(repo *model.Repo) jqeventrouter.HandlerFunc {
	return func(event *jquery.Event, ui *js.Object, params url.Values) bool {
		if _, err := repo.CurrentUser(); err != nil {
			log.Printf("No user logged in: %s\n", err)
			return false
		}
		go func() {
			if err := ShowCard(repo, currentDeck); err != nil {
				log.Printf("Error showing card: %v", err)
			}
		}()

		return true
	}
}
// BeforeTransition prepares the page to study
BeforeTransition prepares the page to study
// BeforeTransition prepares the page to study
func BeforeTransition(repo *model.Repo) jqeventrouter.HandlerFunc {
	return func(event *jquery.Event, ui *js.Object, params url.Values) bool {
		if _, err := repo.CurrentUser(); err != nil {
			log.Printf("No user logged in: %s\n", err)
			return false
		}
		go func() {
			if err := ShowCard(repo, currentDeck); err != nil {
				log.Printf("Error showing card: %v", err)
			}
		}()
		return true
	}
}
func BeforeTransition ( repo * model . Repo ) jqeventrouter . HandlerFunc { return func ( event * jquery . Event , ui * js . Object , params url . Values ) bool { if _ , err := repo . CurrentUser ( ) ; err != nil { log . Printf ( " \n " , err ) return false } go func ( ) { if err := ShowCard ( repo , currentDeck ) ; err != nil { log . Printf ( " " , err ) } } ( ) return true } }
BeforeTransition prepares the page to study
BeforeTransition prepares the page to study