From a3ba58dfc048c948230317191c67101c4aa80bfb Mon Sep 17 00:00:00 2001 From: cweiske Date: Wed, 28 Oct 2009 08:02:17 +0000 Subject: basic ajax voting support. has a bad counting bug somewhere git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@445 b3834d28-1941-0410-a4f8-b48e95affb8f --- www/vote.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'www/vote.php') diff --git a/www/vote.php b/www/vote.php index 6dda31b..406b7d0 100644 --- a/www/vote.php +++ b/www/vote.php @@ -65,5 +65,11 @@ if ($vs->hasVoted($bookmark, $user)) { } $vs->vote($bookmark, $user, $type == 'for' ? 1 : -1); + +if (isset($GLOBALS['ajaxRequest']) && $GLOBALS['ajaxRequest']) { + //we are in ajax mode and return the badge in ajaxVote.php + return; +} + header('Location: ' . $from); ?> \ No newline at end of file -- cgit v1.2.3