diff options
Diffstat (limited to 'modules/simpletest/simpletest.js')
-rw-r--r-- | modules/simpletest/simpletest.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/simpletest/simpletest.js b/modules/simpletest/simpletest.js index c33ef982a..9cab26101 100644 --- a/modules/simpletest/simpletest.js +++ b/modules/simpletest/simpletest.js @@ -14,9 +14,9 @@ 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.size() - 1 : 0; + var row = direction ? trs.length - 1 : 0; // If clicked in the middle of expanding a group, stop so we can switch directions. if (timeout) { @@ -35,7 +35,7 @@ Drupal.behaviors.simpleTestMenuCollapse = { } } else { - if (row < trs.size()) { + if (row < trs.length) { $(trs[row]).removeClass('js-hide').show(); row++; timeout = setTimeout(rowToggle, 20); |