diff options
author | Tomer Kimia <tkimia@purdue.edu> | 2014-03-03 19:00:25 -0500 |
---|---|---|
committer | Tomer Kimia <tkimia@purdue.edu> | 2014-03-03 19:00:25 -0500 |
commit | fb8aedbf8f39c627e6537c567f030b389cfb3cfb (patch) | |
tree | 714e1a5294f839c4a5c22195e5f4685af847f6a8 /app/assets | |
parent | 38c41dc461244832d739b755e073989c61dacf47 (diff) | |
parent | cd69a777235e96266d4ed101ef22de7ed1308dd5 (diff) |
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/ajax.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/assets/javascripts/ajax.js b/app/assets/javascripts/ajax.js new file mode 100644 index 0000000..31578dd --- /dev/null +++ b/app/assets/javascripts/ajax.js @@ -0,0 +1,15 @@ +function populate() { + //populate optionArray + //make a form element + var e = document.getElementById("tournament_id"); + var gameType = e.options[e.selectedIndex].text; + if (gameType != "Select a Game Type") { + alert(gameType + " was Selected!"); + //populate optionArray via AJAX + //select * from tournament_settings where gametype = GameType + for(var option in optionArray){ + //identify the number of + ; + } + }; +}
\ No newline at end of file |