diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-23 13:07:25 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-23 13:07:25 -0400 |
commit | 1ea3366c70ad87f2c0d3fa3ae3a56f27b691f696 (patch) | |
tree | 5446ee7a134b0aab31d4a232008f96acd88a291a /app/views/matches/show.html.erb | |
parent | 395a12042bbe9c4eeca60e41c75004c3bdad4e87 (diff) |
clean up the javascript everywhere
Diffstat (limited to 'app/views/matches/show.html.erb')
-rw-r--r-- | app/views/matches/show.html.erb | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/app/views/matches/show.html.erb b/app/views/matches/show.html.erb index a1d82a3..a3ebec2 100644 --- a/app/views/matches/show.html.erb +++ b/app/views/matches/show.html.erb @@ -1,3 +1,17 @@ +<script type="text/javascript"> +function score_peers() { + //get each player in order and assign score here! + var $lisp = $('ol#boxes'); + var comma = "," + for(var i=0; i < $lisp.length; i++) { + if ( i == lisp.length-1) { + comma = ""; + } + $('review_action').value += $('ol#boxes:eq(' + i + ')').text() + comma; + } +} +</script> + <p> <strong>Status:</strong> <%= @match.status %> @@ -112,17 +126,3 @@ <% end # case %> <% end # form %> </div> - -<script type="text/javascript"> -function score_peers() { - //get each player in order and assign score here! - var $lisp = $('ol#boxes'); - var comma = "," - for(var i=0; i < $lisp.length; i++) { - if ( i == lisp.length-1) { - comma = ""; - } - $('review_action').value += $('ol#boxes:eq(' + i + ')').text() + comma; - } -} -</script> |