changeset 285:4c00e9cbb84e

Work on the voting interface.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 24 Nov 2013 23:20:38 +0200
parents 0b6e16ea77c4
children daa9e22045ad
files vote.inc.php
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/vote.inc.php	Sun Nov 24 23:10:03 2013 +0200
+++ b/vote.inc.php	Sun Nov 24 23:20:38 2013 +0200
@@ -8,15 +8,6 @@
 require_once "majax.php";
 
 
-stCommonAJAX("usrajax.php", "usrlogout.php", TRUE);
-?>
-<script type="text/javascript">
-function updateVote(eid, value)
-{
-}
-
-</script>
-<?
 function stGetVoteButton()
 {
   return
@@ -55,7 +46,16 @@
 if (($mode = stGetSessionItem("mode")) == "vote")
 {
   stCommonAJAX("usrajax.php", "usrlogout.php", TRUE);
+?>
+<script type="text/javascript">
 
+function updateVote(eid, value)
+{
+  return false;
+}
+
+</script>
+<?
   // Try fetching previously stored votes
   $sql = stPrepareSQL(
     "SELECT entry_id,value FROM votes WHERE voter_id=%d",