diff options
Diffstat (limited to 'modules/simpletest/simpletest.js')
-rw-r--r-- | modules/simpletest/simpletest.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/simpletest/simpletest.js b/modules/simpletest/simpletest.js index 18ba73480..9cab26101 100644 --- a/modules/simpletest/simpletest.js +++ b/modules/simpletest/simpletest.js @@ -14,7 +14,7 @@ Drupal.behaviors.simpleTestMenuCollapse = { // Adds group toggling functionality to arrow images. $('div.simpletest-image').click(function () { - var trs = $(this).parents('tbody').children('.' + settings.simpleTest[this.id].testClass); + var trs = $(this).closest('tbody').children('.' + settings.simpleTest[this.id].testClass); var direction = settings.simpleTest[this.id].imageDirection; var row = direction ? trs.length - 1 : 0; |