Fix count buttons for single reaction objects
authorJoshua Rüsweg <ruesweg@woltlab.com>
Wed, 28 Aug 2019 19:33:40 +0000 (21:33 +0200)
committerJoshua Rüsweg <ruesweg@woltlab.com>
Wed, 28 Aug 2019 19:33:40 +0000 (21:33 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Reaction/CountButtons.js

index e0ac81801a1e83e2ff505f4f4168413da68b0fbc..6155e2e16d2061b7b887fefe640890f83168dd24 100644 (file)
@@ -107,7 +107,7 @@ define(
                        updateCountButtons: function(objectId, data) {
                                var triggerChange = false;
                                this._objects.get(objectId).forEach(function(elementData) {
-                                       var summaryList = elBySel(this._options.summaryListSelector, elementData.element);
+                                       var summaryList = elBySel(this._options.summaryListSelector, this._options.isSingleItem ? undefined : elementData.element);
                                        
                                        // summary list for the object not found; abort
                                        if (summaryList === null) return;