summaryrefslogtreecommitdiff
path: root/modules/simpletest
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-03-28 09:33:40 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2012-03-28 09:33:40 -0700
commit966d3f310d0a39114d98ccb9623d3663478fd608 (patch)
treef3bd2c0613fd29b44fc655bba4f8c7affa6ef50d /modules/simpletest
parent3643ea884ae95b2f3b760eb6842a4275c757deca (diff)
downloadbrdo-966d3f310d0a39114d98ccb9623d3663478fd608.tar.gz
brdo-966d3f310d0a39114d98ccb9623d3663478fd608.tar.bz2
Issue #1400310 by nod_, sun, m.stenta: Fixed Use of .parents() is really .closest().
Diffstat (limited to 'modules/simpletest')
-rw-r--r--modules/simpletest/simpletest.js2
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;