summaryrefslogtreecommitdiff
path: root/modules/simpletest
diff options
context:
space:
mode:
Diffstat (limited to 'modules/simpletest')
-rw-r--r--modules/simpletest/simpletest.js4
-rw-r--r--modules/simpletest/simpletest.module4
2 files changed, 6 insertions, 2 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) {
diff --git a/modules/simpletest/simpletest.module b/modules/simpletest/simpletest.module
index ff338b12f..f2e547fcd 100644
--- a/modules/simpletest/simpletest.module
+++ b/modules/simpletest/simpletest.module
@@ -229,7 +229,7 @@ function theme_simpletest_test_table($table) {
// Expand/collapse image and group title.
$row[] = array(
- 'data' => '<div class="simpletest-image" id="simpletest-test-group-' . $test_class . '">' . $js['images'][0] . '</div>&nbsp;' .
+ 'data' => '<div class="simpletest-image" id="simpletest-test-group-' . $test_class . '"></div>&nbsp;' .
'<label for="' . $test_class . '-select-all" class="simpletest-group-label">' . $key . '</label>',
'style' => 'font-weight: bold;'
);
@@ -258,7 +258,7 @@ function theme_simpletest_test_table($table) {
$row[] = drupal_render($test);
$row[] = theme('indentation', 1) . '<label for="edit-' . $test_name . '">' . $title . '</label>';
$row[] = '<div class="description">' . $description . '</div>';
- $rows[] = array('data' => $row, 'style' => 'display: none;', 'class' => $test_class . '-test');
+ $rows[] = array('data' => $row, 'class' => $test_class . '-test js-hide');
}
$js['simpletest-test-group-'. $test_class] = $current_js;
unset($table[$key]);