comparison vote.inc.php @ 340:87e57f0aa0e5

Use a wrapper function for alert(), we might be changing the functionality of this later on.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 30 Nov 2013 22:12:23 +0200
parents 018817535fab
children 3175ec252c73
comparison
equal deleted inserted replaced
339:9dd87c8de942 340:87e57f0aa0e5
86 { 86 {
87 } 87 }
88 88
89 var mfail = function(txt) 89 var mfail = function(txt)
90 { 90 {
91 alert("Something went wrong. :("); 91 messageBox("Something went wrong. :(");
92 } 92 }
93 93
94 sendPOSTRequest("action=set&entry_id="+eid+"&vote="+value, msuccess, mfail); 94 sendPOSTRequest("action=set&entry_id="+eid+"&vote="+value, msuccess, mfail);
95 return false; 95 return false;
96 } 96 }