diff options
author | AndrewMurrell <amurrel@purdue.edu> | 2014-03-03 13:17:02 -0500 |
---|---|---|
committer | AndrewMurrell <amurrel@purdue.edu> | 2014-03-03 13:17:02 -0500 |
commit | def21c442c6e4b52b50f852cedd3e8bcaf436f9d (patch) | |
tree | 696473434a36fa5987c543c5bd5cf29c14e6ab3f /app/assets | |
parent | 257ccb19453c1d609e724a29349d390e5978b739 (diff) |
Changed the views for tournament a little more.
Diffstat (limited to 'app/assets')
-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 ; |