Mercurial > hg > fapweb
changeset 330:78521cac3a42
Add an error dialog.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 28 Nov 2013 00:31:04 +0200 |
parents | 899a3583666d |
children | 5cc19baf9318 |
files | vote.inc.php |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/vote.inc.php Thu Nov 28 00:28:07 2013 +0200 +++ b/vote.inc.php Thu Nov 28 00:31:04 2013 +0200 @@ -82,6 +82,15 @@ function updateVote(eid, value) { + var msuccess = function(txt) + { + } + + var mfail = function(txt) + { + alert("Something went wrong. :("); + } + sendPOSTRequest("action=set&entry_id="+eid+"&vote="+value, msuccess, mfail); return false; }