From 1ea3366c70ad87f2c0d3fa3ae3a56f27b691f696 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 23 Apr 2014 13:07:25 -0400 Subject: clean up the javascript everywhere --- app/assets/javascripts/ajax.js | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 app/assets/javascripts/ajax.js (limited to 'app/assets/javascripts/ajax.js') diff --git a/app/assets/javascripts/ajax.js b/app/assets/javascripts/ajax.js deleted file mode 100644 index 040c100..0000000 --- a/app/assets/javascripts/ajax.js +++ /dev/null @@ -1,19 +0,0 @@ -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 - ; - } - }; - -//$.ajax(url: "/selected").done (html) -> $("#ajax-form").append html - -} - -- cgit v1.2.3-54-g00ecf