diff vote.inc.php @ 325:aac3bdd73ec1

More work on voting.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 27 Nov 2013 23:19:00 +0200
parents 7181350076c1
children 64c28792ae08
line wrap: on
line diff
--- a/vote.inc.php	Wed Nov 27 18:48:49 2013 +0200
+++ b/vote.inc.php	Wed Nov 27 23:19:00 2013 +0200
@@ -82,6 +82,7 @@
 
 function updateVote(eid, value)
 {
+  sendPOSTRequest("action=set&entry_id="+eid+"&vote="+value, msuccess, mfail);
   return false;
 }
 
@@ -148,7 +149,7 @@
           echo
             "<td class=\"vvalue\">".
             stGetFormRadioButtonInput(
-              "entry".$eid, "", "", $i, ($i == $val),
+              "ventry".$eid, "", "", $i, ($i == $val),
               "",
               "onClick=\"updateVote(".$eid.",".$i.")\"").
             "</td>";
@@ -174,6 +175,7 @@
 {
   // Voting finished
   echo stGetSetting("voteFinishedText");
+  echo "<p>Or perhaps <a href=\"vote\">vote again!</a></p>\n";
   stSessionEnd(SESS_USER);
 }
 ?> 
\ No newline at end of file