diff options
Diffstat (limited to 'www/vote.php')
-rw-r--r-- | www/vote.php | 6 |
1 files changed, 6 insertions, 0 deletions
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 |