From c3f6a4a1249b33e8d0d7ab35aa3501ac0eec1e03 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 8 Feb 2016 13:43:09 +0100 Subject: [PATCH] Fixed handling of AJAX response data --- wcfsetup/install/files/js/WoltLab/WCF/Ui/Like/Handler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Ui/Like/Handler.js b/wcfsetup/install/files/js/WoltLab/WCF/Ui/Like/Handler.js index d0d8d09e49..eddbf8ba65 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Ui/Like/Handler.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Ui/Like/Handler.js @@ -371,8 +371,8 @@ define( elementData.users.push(StringUtil.escapeHTML(users[keys[i]].username)); } - if (data.isLiked == 1) elementData.liked = 1; - else if (data.isDisliked) elementData.liked = -1; + if (data.returnValues.isLiked == 1) elementData.liked = 1; + else if (data.returnValues.isDisliked == 1) elementData.liked = -1; else elementData.liked = 0; // update label -- 2.20.1