diff options
author | DavisLWebb <davislwebb@ymail.com> | 2014-03-03 13:55:25 -0500 |
---|---|---|
committer | DavisLWebb <davislwebb@ymail.com> | 2014-03-03 13:55:25 -0500 |
commit | 26964a54fffb5501ba505c229361ae6a100ed099 (patch) | |
tree | bbd7446185c46e8706150fe17ef48c9c8be08a03 /app/assets/javascripts/ajax.js | |
parent | 3425bfd0f56495b7d8d9f86ac740fcf90f0fbfdb (diff) | |
parent | 8c0cd2f7c5d3152c1674cd730d649a787a8eb67c (diff) |
Merge branch 'master' of http://github.com/LukeShu/leaguer
Diffstat (limited to 'app/assets/javascripts/ajax.js')
-rw-r--r-- | app/assets/javascripts/ajax.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/assets/javascripts/ajax.js b/app/assets/javascripts/ajax.js index 2b2bb3e..475dddc 100644 --- a/app/assets/javascripts/ajax.js +++ b/app/assets/javascripts/ajax.js @@ -3,9 +3,10 @@ function populate() { //make a form element var e = document.getElementById("tournament_id"); var gameType = e.options[e.selectedIndex].text; - if (gameType != "") { + if (gameType != "Select a Game Type") { + alert(gameType + " was Selected!"); //populate optionArray - + //select * from tournament_settings where gametype = GameType for(var option in optionArray){ //identify the number of ; |