From 0762f6007378a79d53951baf79cf8a5fac7a7489 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 10 Nov 2008 05:23:01 +0000 Subject: #315798 by Rob Loach, mfer, Grugnog2, and sun: Add weighting to drupal_add_js(). --- modules/simpletest/simpletest.module | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/simpletest/simpletest.module') diff --git a/modules/simpletest/simpletest.module b/modules/simpletest/simpletest.module index 5275afb67..71225ff5c 100644 --- a/modules/simpletest/simpletest.module +++ b/modules/simpletest/simpletest.module @@ -210,7 +210,10 @@ function simpletest_test_form() { function theme_simpletest_test_table($table) { drupal_add_css(drupal_get_path('module', 'simpletest') . '/simpletest.css'); - drupal_add_js(drupal_get_path('module', 'simpletest') . '/simpletest.js', 'module'); + + // Since SimpleTest is a special use case for the table select, stick the + // SimpleTest JavaScript above the table select. + drupal_add_js(drupal_get_path('module', 'simpletest') . '/simpletest.js', array('weight' => JS_DEFAULT - 1)); // Create header for test selection table. $header = array( -- cgit v1.2.3