Fixed multiple bbcode blocks toggled by one button
authorAlexander Ebert <ebert@woltlab.com>
Thu, 18 Aug 2016 22:25:51 +0000 (00:25 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 18 Aug 2016 22:25:51 +0000 (00:25 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Bbcode/Collapsible.js

index 392deac15fa3cff4f84abdf5422a976fffed0abd..edf0edddf53833d985c4abfcc40071c7a5b564bb 100644 (file)
@@ -21,7 +21,7 @@ define([], function() {
                                container = _containers[0];
                                container.classList.remove('jsCollapsibleBbcode');
                                
-                               toggleButton = elBySel('.toggleButton');
+                               toggleButton = elBySel('.toggleButton', container);
                                if (toggleButton === null) {
                                        continue;
                                }