diff options
author | AndrewMurrell <amurrel@purdue.edu> | 2014-03-03 11:40:05 -0500 |
---|---|---|
committer | AndrewMurrell <amurrel@purdue.edu> | 2014-03-03 11:40:05 -0500 |
commit | d220b5f8e86d1c8b4503948c09f2497d11710d98 (patch) | |
tree | a4240880516a0f07d21e33a81050e6f7c5019c55 /app/assets/javascripts | |
parent | 399543c7ad0577afa2c840b1e39e368acfcb0076 (diff) |
Some of the stuff I forgot to commit last night. Updated and cleaned up some pages as well as getting the gameType listing to work.
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/ajax.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/assets/javascripts/ajax.js b/app/assets/javascripts/ajax.js new file mode 100644 index 0000000..2b2bb3e --- /dev/null +++ b/app/assets/javascripts/ajax.js @@ -0,0 +1,14 @@ +function populate() { + //populate optionArray + //make a form element + var e = document.getElementById("tournament_id"); + var gameType = e.options[e.selectedIndex].text; + if (gameType != "") { + //populate optionArray + + for(var option in optionArray){ + //identify the number of + ; + } + }; +}
\ No newline at end of file |