Skip to content

Commit

Permalink
Random Root was not stopping Random Interval Quiz, fixed click binding
Browse files Browse the repository at this point in the history
  • Loading branch information
deltadada committed Sep 26, 2014
1 parent 89f3396 commit 0c70e82
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions boxfrets.js
Original file line number Diff line number Diff line change
Expand Up @@ -1276,13 +1276,8 @@ jQuery(document).ready(function() {
// bind 'random note quiz' to functionality -- each click generates a random root note and loads a scale
// where you can guess the rest
$('#randomRootQuiz').click(function(){
if($('#intervalQuiz').val() == CHECKANSWER){
// stop quiz
ctl_updateQuizzing(ST_QUIZZING_NONE);
} else {
// start interval quiz
ctl_updateQuizzing(ST_QUIZZING_RANDOMROOT);
}
ctl_updateQuizzing(ST_QUIZZING_NONE);
ctl_updateQuizzing(ST_QUIZZING_RANDOMROOT);
})

// set up example links
Expand Down

0 comments on commit 0c70e82

Please sign in to comment.