summaryrefslogtreecommitdiff
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-03-03 13:17:02 -0500
committerAndrewMurrell <amurrel@purdue.edu>2014-03-03 13:17:02 -0500
commitdef21c442c6e4b52b50f852cedd3e8bcaf436f9d (patch)
tree696473434a36fa5987c543c5bd5cf29c14e6ab3f /app/assets/javascripts
parent257ccb19453c1d609e724a29349d390e5978b739 (diff)
Changed the views for tournament a little more.
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r--app/assets/javascripts/ajax.js5
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
;