Correct reaction on sorted react buttons
authorJoshua Rüsweg <josh@bastelstu.be>
Sat, 28 Jul 2018 09:49:25 +0000 (11:49 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Sat, 28 Jul 2018 09:49:25 +0000 (11:49 +0200)
See #2508

wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Reaction/Handler.js

index e3bc33cccd7aed25f31e8d9d3403bd7c625ec328..fcf8390a37ab7d5cb39434d52f718a98b83b13d5 100644 (file)
@@ -201,7 +201,7 @@ define(
                                                
                                                reactionTypeItem.appendChild(reactionTypeItemSpan);
                                                
-                                               reactionTypeItem.addEventListener(WCF_CLICK_EVENT, this._react.bind(this, key));
+                                               reactionTypeItem.addEventListener(WCF_CLICK_EVENT, this._react.bind(this, reactionType.reactionTypeID));
                                                
                                                popoverContentHTML.appendChild(reactionTypeItem);
                                        }