comparison vote.inc.php @ 330:78521cac3a42

Add an error dialog.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 28 Nov 2013 00:31:04 +0200
parents 64c28792ae08
children 018817535fab
comparison
equal deleted inserted replaced
329:899a3583666d 330:78521cac3a42
80 ?> 80 ?>
81 <script type="text/javascript"> 81 <script type="text/javascript">
82 82
83 function updateVote(eid, value) 83 function updateVote(eid, value)
84 { 84 {
85 var msuccess = function(txt)
86 {
87 }
88
89 var mfail = function(txt)
90 {
91 alert("Something went wrong. :(");
92 }
93
85 sendPOSTRequest("action=set&entry_id="+eid+"&vote="+value, msuccess, mfail); 94 sendPOSTRequest("action=set&entry_id="+eid+"&vote="+value, msuccess, mfail);
86 return false; 95 return false;
87 } 96 }
88 97
89 </script> 98 </script>