From: Alexander Ebert Date: Mon, 8 Feb 2016 12:43:09 +0000 (+0100) Subject: Fixed handling of AJAX response data X-Git-Tag: 3.0.0_Beta_1~2030^2~98 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c3f6a4a1249b33e8d0d7ab35aa3501ac0eec1e03;p=GitHub%2FWoltLab%2FWCF.git Fixed handling of AJAX response data --- 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