diff options
author | John H. Anthony <johnhant@gmail.com> | 2010-09-04 15:05:28 +0200 |
---|---|---|
committer | John H. Anthony <johnhant@gmail.com> | 2010-09-04 15:05:28 +0200 |
commit | b044930b49e51ffd25eb1c1ff49c987d7d2b0ea4 (patch) | |
tree | e08fec1b9f85a862aa40e5105f73b41c6fbe1ae5 /src/lq/Printer.java | |
parent | c35a035d25b06bc7ad403ec82dd4495056e599d7 (diff) |
implemented voting
Voting now appears to work, using the AddVote servlet. The datastore
update is not committed as a transaction yet; the quote and its votes
has to be in the same entity group for transactions to work.
Diffstat (limited to 'src/lq/Printer.java')
-rw-r--r-- | src/lq/Printer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lq/Printer.java b/src/lq/Printer.java index 573ab5d..beee449 100644 --- a/src/lq/Printer.java +++ b/src/lq/Printer.java @@ -24,7 +24,7 @@ public class Printer { out.println(QuoteUtil.formatScore(quote)); out.println("<br> Vote: <font size=\"-1\">"); for(int nv=1; nv<=5; nv++) - out.println("<a href=\"javascript:ajaxvote(" + quote.getId() + ","+nv+")\">"+nv+"</a> "); + out.println("<a href=\"javascript:vote(" + quote.getId() + ","+nv+")\">"+nv+"</a> "); out.println("</font> </span>"); out.println("<br> <br>"); |