diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-10-06 14:38:02 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-10-06 14:38:02 +0000 |
commit | cbeaf157af49b812007074d73dfe617188800dce (patch) | |
tree | 64c0a352e167018dedf9fc25078469931ac8cd50 /modules/simpletest/simpletest.js | |
parent | d35f1517c37cc3b5d9a340cbbf0ece145d1da978 (diff) | |
download | brdo-cbeaf157af49b812007074d73dfe617188800dce.tar.gz brdo-cbeaf157af49b812007074d73dfe617188800dce.tar.bz2 |
- Patch #308668 by jpetso, boombatower: make test selection page work when Javascript is disabled.
Diffstat (limited to 'modules/simpletest/simpletest.js')
-rw-r--r-- | modules/simpletest/simpletest.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/simpletest/simpletest.js b/modules/simpletest/simpletest.js index 861e6ede0..a3f4a5e75 100644 --- a/modules/simpletest/simpletest.js +++ b/modules/simpletest/simpletest.js @@ -5,6 +5,10 @@ */ Drupal.behaviors.simpleTestMenuCollapse = function() { // Adds expand-collapse functionality. + $('div.simpletest-image').each(function() { + direction = Drupal.settings.simpleTest[$(this).attr('id')].imageDirection; + $(this).html(Drupal.settings.simpleTest.images[direction]); + }); $('div.simpletest-image').click(function() { // Toggle all of the trs. if (!Drupal.settings.simpleTest[$(this).attr('id')].clickActive) { |