summaryrefslogtreecommitdiff
path: root/app/views/matches/show.html.erb
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-04-23 13:19:56 -0400
committerAndrewMurrell <amurrel@purdue.edu>2014-04-23 13:19:56 -0400
commit9d6dc1e5959590eeca5f9ea19cf731d73c735bd6 (patch)
treefd135e0f543a7f78388c91992fcfa85b5b7564dd /app/views/matches/show.html.erb
parentb2ceff6667461a6db587c4077ef56bdb4fe9f44b (diff)
parent21d6ddb3b2e85fa24f331dbf547133a34b0d37bd (diff)
Merge branch 'master' of http://github.com/LukeShu/leaguer
Diffstat (limited to 'app/views/matches/show.html.erb')
-rw-r--r--app/views/matches/show.html.erb28
1 files changed, 14 insertions, 14 deletions
diff --git a/app/views/matches/show.html.erb b/app/views/matches/show.html.erb
index a10139f..e61d6b3 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 %>
@@ -113,17 +127,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>